apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/locks/unix thread_rwlock.c
Date Fri, 03 Oct 2003 15:30:57 GMT
jorton      2003/10/03 08:30:57

  Modified:    locks/unix thread_rwlock.c
  Log:
  * locks/unix/thread_rwlock.c (apr_thread_rwlock_destroy): Simplify
  to use apr_pool_cleanup_run.
  
  Revision  Changes    Path
  1.10      +1 -3      apr/locks/unix/thread_rwlock.c
  
  Index: thread_rwlock.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/thread_rwlock.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -u -r1.9 -r1.10
  --- thread_rwlock.c	3 Oct 2003 15:14:38 -0000	1.9
  +++ thread_rwlock.c	3 Oct 2003 15:30:57 -0000	1.10
  @@ -184,9 +184,7 @@
   
   APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock)
   {
  -    apr_status_t stat = thread_rwlock_cleanup(rwlock);
  -    apr_pool_cleanup_kill(rwlock->pool, rwlock, thread_rwlock_cleanup);
  -    return stat;
  +    return apr_pool_cleanup_run(rwlock->pool, rwlock, thread_rwlock_cleanup);
   }
   
   #else  /* HAVE_PTHREAD_RWLOCK_INIT */
  
  
  

Mime
View raw message