Attached is a patch for the suggested additional flag to be able to share and use a pool across threads.
Sander > -----Original Message----- > From: Justin Erenkrantz [mailto:[EMAIL PROTECTED] > Sent: 25 August 2001 19:57 > To: Sander Striker > Cc: [email protected] > Subject: Re: Review of possible replacement for pools > > > 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 > > > >
shared.patch
Description: Binary data
