apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe Jr." <wr...@rowe-clan.net>
Subject Re: Thread safety of data structures?
Date Tue, 26 Jul 2011 16:57:09 GMT
On 7/26/2011 4:16 AM, Antonio Vieiro wrote:
> Hi all,
> 
> I imagine that APR hashtables [1] (and other data structures) are
> *not* thread safe; so it's necessary to use mutexes and friends in a
> multithreaded environment to work with them, am I right?
> 
> Thanks,
> Antonio
> 
> [1] http://apr.apache.org/docs/apr/1.4/group__apr__hash.html

Not for write operations; you are correct.

A read only hash is always threadsafe.

Mime
View raw message