Skip to content

Commit

Permalink
Collapse this down to the infinately more readable apr_pool_cleanup_r…
Browse files Browse the repository at this point in the history
…un().

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63743 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
abannert committed Jul 30, 2002
1 parent 7d28b34 commit d56d8ca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions locks/unix/thread_mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d56d8ca

Please sign in to comment.