apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/include apr_atomic.h
Date Tue, 30 Apr 2002 23:43:29 GMT
jerenkrantz    02/04/30 16:43:28

  Modified:    include  apr_atomic.h
  Log:
  Remove Linux atomic support as this is most definitely not meant for
  userspace applications.  We will have to come up with processor-specific
  implementations, but we can not rely on Linux to help us here.  So,
  remove this.
  
  Linux will now use the fallback atomic implementation.
  
  Revision  Changes    Path
  1.24      +0 -19     apr/include/apr_atomic.h
  
  Index: apr_atomic.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_atomic.h,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- apr_atomic.h	20 Apr 2002 22:06:38 -0000	1.23
  +++ apr_atomic.h	30 Apr 2002 23:43:28 -0000	1.24
  @@ -154,25 +154,6 @@
   #define apr_atomic_cas(mem,with,cmp) InterlockedCompareExchange(mem,with,cmp)
   #define apr_atomic_init(pool)        APR_SUCCESS
   
  -#elif defined(__linux)
  -
  -#include <stdlib.h>
  -#include <asm/atomic.h>
  -#include <asm/system.h>
  -#define apr_atomic_t atomic_t
  -
  -#define apr_atomic_add(mem, val)     atomic_add(val,mem)
  -#define apr_atomic_dec(mem)          !atomic_dec_and_test(mem)
  -#define apr_atomic_inc(mem)          atomic_inc(mem)
  -#define apr_atomic_set(mem, val)     atomic_set(mem, val)
  -#define apr_atomic_read(mem)         atomic_read(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(NETWARE)
   
   #include <stdlib.h>
  
  
  

Mime
View raw message