apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: Problems with DSOs and Pools
Date Tue, 12 Sep 2006 14:40:18 GMT
On 9/11/06, Bojan Smojver <bojan@rexursive.com> wrote:
> On Mon, 2006-09-11 at 10:48 -0400, Garrett Rooney wrote:
> > If we're going to go
> > based off of a NULL pool argument, I'd prefer to allocate out of a
> > known to be safe global pool, which we can create as part of
> > apr_initialize, then cleanups will happen normally at shutdown time.
> OK, no worries.
> I guess we can just use the global pool itself, right? We just need to
> have mutex to prevent multiple callers from fiddling with the global
> pool at the same time. Or maybe such a thing already exists... (haven't
> looked at the code yet).

I would prefer to leave the global pool alone, and just create a
separate subpool and mutex around that, since that keeps the global
pool isolated to apr_pools.c, rather than making it accessed from
multiple parts of the source tree.


View raw message