apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: apr/locks/unix thread_mutex.c
Date Tue, 30 Jul 2002 17:06:00 GMT
aaron       2002/07/30 10:06:00

  Modified:    locks/unix thread_mutex.c
  Log:
  Collapse this down to the infinately more readable apr_pool_cleanup_run().
  
  Revision  Changes    Path
  1.13      +1 -6      apr/locks/unix/thread_mutex.c
  
  Index: thread_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/thread_mutex.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- thread_mutex.c	30 Jul 2002 17:01:38 -0000	1.12
  +++ thread_mutex.c	30 Jul 2002 17:06:00 -0000	1.13
  @@ -228,12 +228,7 @@
   
   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)
  
  
  

Mime
View raw message