Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 97873 invoked from network); 29 Dec 2006 17:45:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2006 17:45:22 -0000 Received: (qmail 60079 invoked by uid 500); 29 Dec 2006 17:45:27 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 60043 invoked by uid 500); 29 Dec 2006 17:45:27 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 60025 invoked by uid 99); 29 Dec 2006 17:45:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 09:45:27 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [24.71.223.10] (HELO pd2mo1so.prod.shaw.ca) (24.71.223.10) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 09:45:16 -0800 Received: from pd5mr2so.prod.shaw.ca (pd5mr2so-qfe3.prod.shaw.ca [10.0.141.233]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JB100MTIQM1ZG90@l-daemon> for dev@apr.apache.org; Fri, 29 Dec 2006 10:44:25 -0700 (MST) Received: from pn2ml3so.prod.shaw.ca ([10.0.121.147]) by pd5mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JB100JU7QM1J271@pd5mr2so.prod.shaw.ca> for dev@apr.apache.org; Fri, 29 Dec 2006 10:44:25 -0700 (MST) Received: from [192.168.0.103] ([24.69.76.33]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JB100BFZQM00481@l-daemon> for dev@apr.apache.org; Fri, 29 Dec 2006 10:44:25 -0700 (MST) Date: Fri, 29 Dec 2006 09:44:35 -0800 From: Chris Darroch Subject: Re: reslists and sub-pools In-reply-to: <4592F209.1060005@pearsoncmg.com> To: dev@apr.apache.org Message-id: <45955403.1000403@pearsoncmg.com> Organization: Pearson CTG/CMG MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-ca, en-us X-Enigmail-Version: 0.93.0.0 References: <458C73D7.4060609@pearsoncmg.com> <458CDED3.8000108@apache.org> <4592F209.1060005@pearsoncmg.com> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060423 X-Virus-Checked: Checked by ClamAV on apache.org Hi -- Chris Darroch wrote: > Yes, thank you, that would work nicely! If apr_reslist_create() > registered its cleanup function as a pre-cleanup, I think it would > work just as you say; existing users of reslists who might have > apr_pool_destroy() in their destructors wouldn't need to alter > anything. I guess this fix would require a joint release of > APR and APR-util ... how does that work, BTW? I suppose the most obvious thing might be to have APR export an APR_HAS_PRE_CLEANUP, then add a simple conditional in apr_reslist_create() to use a pre-cleanup if that's available. Alternately, APR-util's autoconf could test for the existence of apr_pool_pre_cleanup_register() and set an APU_HAS_PRE_CLEANUP, I guess. Out of interest, which would be the preferred option? Chris. -- GPG Key ID: 366A375B GPG Key Fingerprint: 485E 5041 17E1 E2BB C263 E4DE C8E3 FA36 366A 375B