You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2008/08/07 07:46:07 UTC
svn commit: r683515 - /apr/apr-util/trunk/misc/apr_reslist.c
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);