httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/locks/unix intraproc.c
Date Thu, 09 Nov 2000 18:57:38 GMT
trawick     00/11/09 10:57:38

  Modified:    src/lib/apr/locks/unix intraproc.c
  Log:
  Use pthread_mutex_destroy() in the lock cleanup
  routine to clean up a pthread mutex.
  PR:             6824
  Submitted by:   ki@hh.iij4u.or.jp
  Reviewed by:    Jeff Trawick
  
  Revision  Changes    Path
  1.19      +2 -1      apache-2.0/src/lib/apr/locks/unix/intraproc.c
  
  Index: intraproc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/unix/intraproc.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- intraproc.c	2000/11/09 06:25:29	1.18
  +++ intraproc.c	2000/11/09 18:57:38	1.19
  @@ -63,7 +63,8 @@
       apr_lock_t *lock = (apr_lock_t *) data;
       apr_status_t stat;
   
  -    stat = pthread_mutex_unlock(lock->intraproc);
  +    pthread_mutex_unlock(lock->intraproc);
  +    stat = pthread_mutex_destroy(lock->intraproc);
   #ifdef PTHREAD_SETS_ERRNO
       if (stat) {
           stat = errno;
  
  
  

Mime
View raw message