apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/locks/unix thread_mutex.c
Date Sun, 16 Nov 2003 18:25:00 GMT
trawick     2003/11/16 10:25:00

  Modified:    locks/unix thread_mutex.c
  Log:
  thread id is not always a scalar
  
  Revision  Changes    Path
  1.22      +3 -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.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- thread_mutex.c	16 Nov 2003 01:33:02 -0000	1.21
  +++ thread_mutex.c	16 Nov 2003 18:25:00 -0000	1.22
  @@ -199,6 +199,8 @@
       return rv;
   }
   
  +static apr_os_thread_t invalid_thread_id; /* all zeroes */
  +
   APR_DECLARE(apr_status_t) apr_thread_mutex_unlock(apr_thread_mutex_t *mutex)
   {
       apr_status_t status;
  @@ -217,7 +219,7 @@
   
               if (apr_atomic_dec32(&mutex->owner_ref) != 0)
                   return APR_SUCCESS;
  -            mutex->owner = 0;
  +            mutex->owner = invalid_thread_id;
           }
           /*
            * This should never occur, and indicates an application error
  
  
  

Mime
View raw message