Bojan Smojver
Wed, 23 Jul 2008 14:22:06 -0700
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. -- Bojan