apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@apache.org>
Subject RE: Pools rewrite
Date Thu, 29 Nov 2001 16:50:12 GMT
> From: Ian Holsman [mailto:ianh@cnet.com]
> Sent: 29 November 2001 17:33
> Sander Striker wrote:
> > Hi,
> > 
> > This is the first attempt at the rewrite for pools.
> > I want to do a lot more, like reimplement the debugging
> > facilities we had earlier, but it is a start.
> > 
> > Sander
> > 
> > PS.  I have more time tonight and tomorrow to work on this.
> Great...
> Thanks for this.
> did you miss the apr_pools.h ? or is the API the same?

I didn't miss apr_pools.h, I deliberately did not post it yet.
The header file is still a mess.  The API is expanded a bit
and one function is decrepated in favor of a macro: apr_pool_create().

APR_DECLARE(apr_status_t) apr_pool_create_ex(apr_pool_t **newcont,
                                             apr_pool_t *cont,
                                             apr_abortfunc_t abort_fn,
                                             apr_uint32_t flags);

#define apr_pool_create(p, parent) apr_pool_create_ex(p, parent, NULL, 0)

/* Flags */
#define POOL_FNONE 0x0
#define POOL_FLOCK 0x2

Oh, and I added apr_pool_tag().


PS. I'll post the full header file when I have completed the cleaning up.
    Won't be until at least another six hours, since I am going out for a
    while later on.

View raw message