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 Wed, 20 Feb 2002 20:00:28 GMT
bnicholes    02/02/20 12:00:28

  Modified:    include  apr_atomic.h
  Log:
  NetWare implementation of the APR atomic APIs
  
  Revision  Changes    Path
  1.11      +17 -0     apr/include/apr_atomic.h
  
  Index: apr_atomic.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_atomic.h,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- apr_atomic.h	20 Feb 2002 06:06:11 -0000	1.10
  +++ apr_atomic.h	20 Feb 2002 20:00:28 -0000	1.11
  @@ -163,6 +163,23 @@
   #define APR_ATOMIC_NEED_CAS_DEFAULT 1
   #endif
   
  +#elif defined(NETWARE)
  +
  +#include <stdlib.h>
  +#define apr_atomic_t apr_uint32_t
  +
  +#define apr_atomic_add(mem, val)     atomic_add(mem,val)
  +#define apr_atomic_dec(mem)          atomic_dec(mem)
  +#define apr_atomic_inc(mem)          atomic_inc(mem)
  +#define apr_atomic_set(mem, val)     (*mem = val)
  +#define apr_atomic_read(mem)         (*mem)
  +#if defined(cmpxchg)
  +#define apr_atomic_init(pool)        APR_SUCCESS
  +#define apr_atomic_cas(mem,with,cmp) cmpxchg(mem,cmp,with)
  +#else
  +#define APR_ATOMIC_NEED_CAS_DEFAULT 1
  +#endif
  +
   #elif defined(__FreeBSD__) && (__FreeBSD__ >= 4)
   #include <machine/atomic.h>
   
  
  
  

Mime
View raw message