apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/atomic/unix apr_atomic.c
Date Sun, 01 Sep 2002 17:15:05 GMT
jerenkrantz    2002/09/01 10:15:05

  Modified:    atomic/unix apr_atomic.c
  Log:
  Fix !APR_HAS_THREADS code path for apr_atomic_cas by always defining
  prev.
  
  Revision  Changes    Path
  1.19      +1 -1      apr/atomic/unix/apr_atomic.c
  
  Index: apr_atomic.c
  ===================================================================
  RCS file: /home/cvs/apr/atomic/unix/apr_atomic.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- apr_atomic.c	1 Sep 2002 17:14:11 -0000	1.18
  +++ apr_atomic.c	1 Sep 2002 17:15:05 -0000	1.19
  @@ -161,9 +161,9 @@
   #if !defined(apr_atomic_cas) && !defined(APR_OVERRIDE_ATOMIC_CASE)
   apr_uint32_t apr_atomic_cas(volatile apr_uint32_t *mem, long with, long cmp)
   {
  +    long prev;
   #if APR_HAS_THREADS
       apr_thread_mutex_t *lock = hash_mutex[ATOMIC_HASH(mem)];
  -    long prev;
   
       if (apr_thread_mutex_lock(lock) == APR_SUCCESS) {
           prev = *(long*)mem;
  
  
  

Mime
View raw message