apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Is apr_pool_t thread-safe?
Date Wed, 15 Jul 2009 23:42:25 GMT
On Wed, 2009-07-15 at 13:09 +0200, Aleric Inglewood wrote:

> Now we have to decide whether to use one APR memory pool per thread or,
> to allow multiple thread to use the same apr_pool_t undercertain circumstances.

This is a cut'n'paste of my own reply from an old thread (no other
committer corrected me than, so I guess it still stands):

Pools are explicitly thread unsafe, so if you you are doing something to
the same pool from two different threads, you must synchronise using
your own mutex.

-- 
Bojan


Mime
View raw message