apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Changing the order of cleanup for some core objects
Date Wed, 23 Jul 2008 21:20:51 GMT
On Wed, 2008-07-23 at 13:00 +0100, Joe Orton wrote:

> But that does make the destructor a bit redundant - maybe the destructor 
> callback is simply a bad fit for APR pools, full stop.  Given a reslist 
> implementation which enforces a per-resource subpool what else would you 
> need to do in a destructor that you couldn't do in cleanups?  The two 
> examples in httpd using this API only destroy the subpool in the 
> destructor anyway.

That is true. You could always hang the cleanup off anything from
non-pool space to the pool you were given, therefore eliminating the
destructor completely.


View raw message