summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>2008-08-06 09:25:52 +0000
committermturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>2008-08-06 09:25:52 +0000
commit9e57bf08b109214f3f0d1f3b4e3926e31d93da42 (patch)
tree20a3f850c20aa080560d313b5f3125759f41bc16
parent4cde58f0cb18f7d5b7c7a66a66753c0b5872b305 (diff)
downloadlibapr-util-9e57bf08b109214f3f0d1f3b4e3926e31d93da42.tar.gz
Do not serialize destructor calls.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@683191 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--misc/apr_reslist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c
index 19871203..dac2c99e 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);