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:01:38 GMT
aaron       2002/07/30 10:01:38

  Modified:    locks/unix thread_mutex.c
  Log:
  When we are destroying a mutex we don't know if it is locked or not,
  so we shouldn't try to unlock the mutex.
  
  Submitted by:	Philip Martin <philip@codematters.co.uk>
  Reviewed by:	Aaron Bannert
  
  Revision  Changes    Path
  1.12      +0 -1      apr/locks/unix/thread_mutex.c
  
  Index: thread_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/thread_mutex.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- thread_mutex.c	29 May 2002 21:19:44 -0000	1.11
  +++ thread_mutex.c	30 Jul 2002 17:01:38 -0000	1.12
  @@ -63,7 +63,6 @@
       apr_thread_mutex_t *mutex = (apr_thread_mutex_t *)data;
       apr_status_t rv;
   
  -    pthread_mutex_unlock(&mutex->mutex);
       rv = pthread_mutex_destroy(&mutex->mutex);
   #ifdef PTHREAD_SETS_ERRNO
       if (rv) {
  
  
  

Mime
View raw message