Please READ apr_pools.c... Search for '->mutex' > On Feb 20, 2017, at 10:58 AM, Yann Ylavic <ylavic....@gmail.com> wrote: > > On Mon, Feb 20, 2017 at 4:43 PM, Jim Jagielski <j...@apache.org> wrote: >> You are confusing pool mutexes with allocator mutexes... > > I'm not sure to understand, there is no pool mutex per se currently, > the mutex (if any) used by the pool is its allocator's. > > So as Brane says, if one sets a mutex to the allocator of a pool > because (s)he wants pool_create/destroy() to be thread-safe, it does > not necessarily wants the same for palloc() and friends (e.g. the pool > is used by a single thread). > > I think we should not (re)use the allocator mutex if we want the pool > allocations to be thread-safe, but precisely have a separate pool > mutex.
- Re: svn commit: r1783755 - /httpd/httpd/trunk/server/mpm/eve... Yann Ylavic
- Re: svn commit: r1783755 - /httpd/httpd/trunk/server/mpm/eve... Jim Jagielski
- Re: svn commit: r1783755 - /httpd/httpd/trunk/server/mp... Branko Čibej
- APR pools, mutexes and thread safe allocations Jim Jagielski
- Re: APR pools, mutexes and thread safe allocati... Jim Jagielski
- Re: APR pools, mutexes and thread safe allocati... Branko Čibej
- Re: APR pools, mutexes and thread safe allo... Jim Jagielski
- Re: APR pools, mutexes and thread safe... Jim Jagielski
- Re: APR pools, mutexes and thread safe allo... Jim Jagielski
- Re: APR pools, mutexes and thread safe... Yann Ylavic
- Re: APR pools, mutexes and thread safe... Jim Jagielski
- Re: APR pools, mutexes and thread safe... Yann Ylavic
- Re: APR pools, mutexes and thread safe... Jim Jagielski
- Re: APR pools, mutexes and thread safe... Jim Jagielski
- Re: APR pools, mutexes and thread safe... Jim Jagielski
- Re: APR pools, mutexes and thread safe... Yann Ylavic
- Re: APR pools, mutexes and thread safe... Jim Jagielski
- Re: APR pools, mutexes and thread safe allo... Jim Jagielski