You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Sander Striker <st...@samba-tng.org> on 2001/05/10 22:47:15 UTC
Apr memory system extension, cleanup types
Hi,
I guessed these would be needed anyway, so I did a simple
implementation of associating a type with cleanup functions.
Now you can run all registered cleanup functions of a
certain type in one call. Guess this comes in handy when
trying to implement pools in terms of a memory system.
One small warning: all registered cleanup functions will
be called and unregistered by apr_memory_system_reset()
and apr_memory_system_destroy() regardless of type.
Sander
RE: Apr memory system extension, cleanup types
Posted by Sander Striker <s....@striker.nl>.
Please ignore the last posted patch, it had a flaw.
This one is the correct one.
> Hi,
>
> I guessed these would be needed anyway, so I did a simple
> implementation of associating a type with cleanup functions.
>
> Now you can run all registered cleanup functions of a
> certain type in one call. Guess this comes in handy when
> trying to implement pools in terms of a memory system.
>
> One small warning: all registered cleanup functions will
> be called and unregistered by apr_memory_system_reset()
> and apr_memory_system_destroy() regardless of type.
>
> Sander
>