apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/include apr_atomic.h
Date Thu, 24 Oct 2002 22:46:12 GMT
bnicholes    2002/10/24 15:46:11

  Modified:    include  apr_atomic.h
  Log:
  Implement apr_atomic_casptr() for NetWare
  
  Revision  Changes    Path
  1.40      +2 -0      apr/include/apr_atomic.h
  
  Index: apr_atomic.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_atomic.h,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- apr_atomic.h	21 Oct 2002 17:41:41 -0000	1.39
  +++ apr_atomic.h	24 Oct 2002 22:46:11 -0000	1.40
  @@ -175,11 +175,13 @@
   #define apr_atomic_add(mem, val)     atomic_add(mem,val)
   APR_DECLARE(int) apr_atomic_dec(apr_atomic_t *mem);
   #define APR_OVERRIDE_ATOMIC_DEC 1
  +#define APR_OVERRIDE_ATOMIC_CASPTR 1
   #define apr_atomic_inc(mem)          atomic_inc(mem)
   #define apr_atomic_set(mem, val)     (*mem = val)
   #define apr_atomic_read(mem)         (*mem)
   #define apr_atomic_init(pool)        APR_SUCCESS
   #define apr_atomic_cas(mem,with,cmp) atomic_cmpxchg(mem,cmp,with)
  +#define apr_atomic_casptr(mem,with,cmp) (void*)atomic_cmpxchg((apr_uint32_t *)(mem),(long)(cmp),(long)(with))
   
   #elif defined(__FreeBSD__)
   
  
  
  

Mime
View raw message