apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: API to prevent further allocations from a pool?
Date Thu, 07 Sep 2006 16:39:01 GMT
Jeff Trawick wrote:
> Occasionally I see problems caused by Apache modules using per-process
> pools on a request processing thread.  Aside from the thread-safety
> issues, they had no business doing that anyway.
> apr_pool_lock() - cause abort() on subsequent allocation request
> apr_pool_unlock() - allow it to be used again

Although I'm +1 on the subject, the real thing would be
to provide the pool as part of module loading and modle API,
(or two of them) with the same lifetime as pconf, pchild.
Think this would be more safe then forcing users to rewrite
all their modules.


View raw message