From 1df4acac8575e847dbfbda80abe599c8042df1d8 Mon Sep 17 00:00:00 2001 From: Mladen Turk Date: Wed, 6 Aug 2008 09:25:52 +0000 Subject: [PATCH] Do not serialize destructor calls. git-svn-id: https://svn.eu.apache.org/repos/asf/apr/apr-util/trunk@683191 13f79535-47bb-0310-9956-ffa450edef68 --- misc/apr_reslist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c index 1987120..dac2c99 100644 --- a/misc/apr_reslist.c +++ b/misc/apr_reslist.c @@ -452,10 +452,11 @@ APU_DECLARE(apr_status_t) apr_reslist_invalidate(apr_reslist_t *reslist, void *resource) { apr_status_t ret; + + ret = reslist->destructor(resource, reslist->params, reslist->pool); #if APR_HAS_THREADS apr_thread_mutex_lock(reslist->listlock); #endif - ret = reslist->destructor(resource, reslist->params, reslist->pool); reslist->ntotal--; #if APR_HAS_THREADS apr_thread_cond_signal(reslist->avail); -- 2.11.4.GIT