apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: Review of possible replacement for pools
Date Sat, 25 Aug 2001 17:56:59 GMT
On Sat, Aug 25, 2001 at 08:05:03PM +0200, Sander Striker wrote:
> Adding an option to apr_pool_create_ex to indicate that the pool is
> going to be shared across threads would be an option I can certainly
> live with.  OTOH, this will introduce an extra if(lock) pair in the
> apr_palloc and apr_pcalloc calls.  I'll send in a patch later on.

If you aren't shared, you have an extra NULL-check.  I think that is
acceptable.  If you are shared, we make sure we can't get trounced.

> I didn't implement apr_prealloc yet, but would like to know if people
> would find it usefull.  If so, I will post a patch.

Probably - I've come across the need for such a function before.  But,
it does get to be tricky to implement.  -- justin


Mime
View raw message