apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r683515 - /apr/apr-util/trunk/misc/apr_reslist.c
Date Thu, 07 Aug 2008 05:46:07 GMT
Author: mturk
Date: Wed Aug  6 22:46:07 2008
New Revision: 683515

URL: http://svn.apache.org/viewvc?rev=683515&view=rev
Log:
Revert r683191. Any blocking code should be done before invalidate to deal with serialization.

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=683515&r1=683514&r2=683515&view=diff
==============================================================================
--- apr/apr-util/trunk/misc/apr_reslist.c (original)
+++ apr/apr-util/trunk/misc/apr_reslist.c Wed Aug  6 22:46:07 2008
@@ -452,11 +452,10 @@
                                                  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