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
> 

Attachment: apr_memory-2.patch
Description: Binary data

Reply via email to