apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r683191 - /apr/apr-util/trunk/misc/apr_reslist.c
Date Wed, 06 Aug 2008 09:25:53 GMT
Author: mturk
Date: Wed Aug  6 02:25:52 2008
New Revision: 683191

URL: http://svn.apache.org/viewvc?rev=683191&view=rev
Log:
Do not serialize destructor calls.

Modified:
    apr/apr-util/trunk/misc/apr_reslist.c

Modified: apr/apr-util/trunk/misc/apr_reslist.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_reslist.c?rev=683191&r1=683190&r2=683191&view=diff
==============================================================================
--- apr/apr-util/trunk/misc/apr_reslist.c (original)
+++ apr/apr-util/trunk/misc/apr_reslist.c Wed Aug  6 02:25:52 2008
@@ -452,10 +452,11 @@
                                                  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);



Mime
View raw message