summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authoraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2002-07-30 17:06:00 +0000
committeraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2002-07-30 17:06:00 +0000
commit7d1a03a7957fbda622e60d0885e4fee568899580 (patch)
tree19db6154b7ef0ca8ee972b3594a0a01a0392bd4a /locks
parent81cf9a6dfc2deaf44ce7e69da98d5d2e9e266cfe (diff)
downloadlibapr-7d1a03a7957fbda622e60d0885e4fee568899580.tar.gz
Collapse this down to the infinately more readable apr_pool_cleanup_run().
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63743 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/thread_mutex.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/locks/unix/thread_mutex.c b/locks/unix/thread_mutex.c
index f27b1d1cd..885fc83fd 100644
--- a/locks/unix/thread_mutex.c
+++ b/locks/unix/thread_mutex.c
@@ -228,12 +228,7 @@ APR_DECLARE(apr_status_t) apr_thread_mutex_unlock(apr_thread_mutex_t *mutex)
APR_DECLARE(apr_status_t) apr_thread_mutex_destroy(apr_thread_mutex_t *mutex)
{
- apr_status_t rv;
- if ((rv = thread_mutex_cleanup(mutex)) == APR_SUCCESS) {
- apr_pool_cleanup_kill(mutex->pool, mutex, thread_mutex_cleanup);
- return APR_SUCCESS;
- }
- return rv;
+ return apr_pool_cleanup_run(mutex->pool, mutex, thread_mutex_cleanup);
}
APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex)