apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/locks/unix thread_mutex.c
Date Fri, 08 Aug 2003 19:20:23 GMT
wrowe       2003/08/08 12:20:23

  Modified:    locks/unix thread_mutex.c
  Log:
    Thanks to Jeff for pointing out I didn't point to the atomics.
    Fixes build breakage.
  
  Revision  Changes    Path
  1.20      +3 -3      apr/locks/unix/thread_mutex.c
  
  Index: thread_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/thread_mutex.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- thread_mutex.c	7 Aug 2003 22:16:24 -0000	1.19
  +++ thread_mutex.c	8 Aug 2003 19:20:23 -0000	1.20
  @@ -114,7 +114,7 @@
            * testing the mutex is owned by this thread, so a deadlock is expected.
            */
           if (apr_os_thread_equal(mutex->owner, apr_os_thread_current())) {
  -            apr_atomic_inc(mutex->owner_ref);
  +            apr_atomic_inc(&mutex->owner_ref);
               return APR_SUCCESS;
           }
   
  @@ -162,7 +162,7 @@
            * the trylock.
            */
           if (apr_os_thread_equal(mutex->owner, apr_os_thread_current())) {
  -            apr_atomic_inc(mutex->owner_ref);
  +            apr_atomic_inc(&mutex->owner_ref);
               return APR_SUCCESS;
           }
   
  @@ -215,7 +215,7 @@
                   return APR_EINVAL;
               }
   
  -            if (apr_atomic_dec(mutex->owner_ref) != 0)
  +            if (apr_atomic_dec(&mutex->owner_ref) != 0)
                   return APR_SUCCESS;
               mutex->owner = 0;
           }
  
  
  

Mime
View raw message