apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Vieiro <anto...@antonioshome.net>
Subject Re: Thread safety of data structures?
Date Tue, 26 Jul 2011 19:48:47 GMT
I was wondering if this should be documented somewhere. Shall I file a 
bug report or something?

Even better, shall I write some document about APR?

Cheers,
Antonio

El 26/07/11 18:57, William A. Rowe Jr. escribió:
> 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