summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorrpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68>2007-11-17 10:36:19 +0000
committerrpluem <rpluem@13f79535-47bb-0310-9956-ffa450edef68>2007-11-17 10:36:19 +0000
commit77b0dcc5d563dca9918a70141aa3f5fc4d69cccd (patch)
tree83ff843d457c40e591702c14d11c181c67b048ec /misc
parentef99b6786eebb666114e1df21b6988a737b041b6 (diff)
downloadlibapr-util-77b0dcc5d563dca9918a70141aa3f5fc4d69cccd.tar.gz
* Wakeup waiting threads after resource was invalidated.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@595932 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/apr_reslist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/apr_reslist.c b/misc/apr_reslist.c
index b5a651ee..1e41a0cb 100644
--- a/misc/apr_reslist.c
+++ b/misc/apr_reslist.c
@@ -381,6 +381,7 @@ APU_DECLARE(apr_status_t) apr_reslist_invalidate(apr_reslist_t *reslist,
apr_thread_mutex_lock(reslist->listlock);
ret = reslist->destructor(resource, reslist->params, reslist->pool);
reslist->ntotal--;
+ apr_thread_cond_signal(reslist->avail);
apr_thread_mutex_unlock(reslist->listlock);
return ret;
}