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 proc_mutex.c
Date Mon, 14 Jun 2004 11:35:53 GMT
jorton      2004/06/14 04:35:53

  Modified:    locks/unix proc_mutex.c
  Log:
  * locks/unix/proc_mutex.c (proc_mutex_posix_release): Revert previous
  change, move ->curr_locked manipulation back inside critical section.
  
  Revision  Changes    Path
  1.46      +3 -1      apr/locks/unix/proc_mutex.c
  
  Index: proc_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/proc_mutex.c,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -d -w -u -r1.45 -r1.46
  --- proc_mutex.c	14 Jun 2004 10:59:17 -0000	1.45
  +++ proc_mutex.c	14 Jun 2004 11:35:53 -0000	1.46
  @@ -126,10 +126,12 @@
   
   static apr_status_t proc_mutex_posix_release(apr_proc_mutex_t *mutex)
   {
  +    mutex->curr_locked = 0;
       if (sem_post(mutex->psem_interproc) < 0) {
  +        /* any failure is probably fatal, so no big deal to leave
  +         * ->curr_locked at 0. */
           return errno;
       }
  -    mutex->curr_locked = 0;
       return APR_SUCCESS;
   }
   
  
  
  

Mime
View raw message