apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/atomic/unix apr_atomic.c
Date Wed, 20 Feb 2002 12:23:12 GMT
trawick     02/02/20 04:23:12

  Modified:    atomic/unix apr_atomic.c
  Log:
  get apr_atomic.c to compile (multiple failures seen with gcc
  and AIX's xlc)
  
  Revision  Changes    Path
  1.8       +9 -9      apr/atomic/unix/apr_atomic.c
  
  Index: apr_atomic.c
  ===================================================================
  RCS file: /home/cvs/apr/atomic/unix/apr_atomic.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- apr_atomic.c	20 Feb 2002 05:52:04 -0000	1.7
  +++ apr_atomic.c	20 Feb 2002 12:23:12 -0000	1.8
  @@ -91,10 +91,10 @@
           prev = *mem;
           *mem += val;
           apr_thread_mutex_unlock(lock);
  -        return prev;
  +/*        return prev; */
       }
       printf("debug no workee\n");
  -    return *mem;
  +/*    return *mem; */
   }
   void apr_atomic_set(volatile apr_atomic_t *mem, apr_uint32_t val) 
   {
  @@ -105,9 +105,9 @@
           prev = *mem;
           *mem = val;
           apr_thread_mutex_unlock(lock);
  -        return prev;
  +/*        return prev; */
       }
  -    return *mem;
  +/*    return *mem; */
   }
   
   void apr_atomic_inc( volatile apr_uint32_t *mem) 
  @@ -119,9 +119,9 @@
           prev = *mem;
           (*mem)++;
           apr_thread_mutex_unlock(lock);
  -        return prev;
  +/*        return prev; */
       }
  -    return *mem;
  +/*    return *mem; */
   }
   void apr_atomic_dec(volatile apr_atomic_t *mem) 
   {
  @@ -132,15 +132,15 @@
           prev = *mem;
           (*mem)--;
           apr_thread_mutex_unlock(lock);
  -        return prev;
  +/*        return prev; */
       }
  -    return *mem;
  +/*    return *mem; */
   }
   
   #endif /* APR_ATOMIC_NEED_DEFAULT */
   #if defined(APR_ATOMIC_NEED_CAS_DEFAULT)
   
  -long apr_atomic_cas(volatile void *mem,long with, long cmp)
  +apr_uint32_t apr_atomic_cas(volatile apr_uint32_t *mem,long with, long cmp)
   {
       apr_thread_mutex_t *lock = hash_mutex[ATOMIC_HASH(mem)];
       long prev;
  
  
  

Mime
View raw message