apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: apr/include apr_atomic.h
Date Wed, 20 Feb 2002 06:06:11 GMT
ianh        02/02/19 22:06:11

  Modified:    include  apr_atomic.h
  Added:       atomic/solaris_sparc .cvsignore
  Log:
  minor fix for solaris
  get freebsd fixes in there as well
  ..
  sorry.. but need to build this on multiple platforms
  
  Revision  Changes    Path
  1.1                  apr/atomic/solaris_sparc/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  Makefile
  *.lo
  .libs
  
  
  
  1.10      +3 -5      apr/include/apr_atomic.h
  
  Index: apr_atomic.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_atomic.h,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- apr_atomic.h	20 Feb 2002 05:52:04 -0000	1.9
  +++ apr_atomic.h	20 Feb 2002 06:06:11 -0000	1.10
  @@ -172,7 +172,6 @@
   #define apr_atomic_inc(mem)          atomic_add_int(mem,1)
   #define apr_atomic_set(mem, val)     atomic_set_int(mem, val)
   #define apr_atomic_read(mem)         *mem
  -#define apr_atomic_init(pool)        APR_SUCCESS
   
   #define APR_ATOMIC_NEED_CAS_DEFAULT 1
   
  @@ -184,13 +183,12 @@
   #define apr_atomic_dec(mem)          apr_atomic_sub_sparc(mem,1)
   #define apr_atomic_inc(mem)          apr_atomic_add_sparc(mem,1)
   #define apr_atomic_cas(mem,val,cond) apr_atomic_cas_sparc(mem,val,cond)
  -#define apr_atomic_casptr(mem,val,cond) apr_atomic_casptr_sparc(mem,val,cond)
   #define apr_atomic_set(mem, val)     *mem= val
   #define apr_atomic_init(pool)        APR_SUCCESS
   
  -apr_uint32_t apr_atomic_add_sparc( volatile apr_atomic_t* mem, apr_uint32_t add);
  -apr_uint32_t apr_atomic_sub_sparc( volatile apr_atomic_t* mem, apr_uint32_t sub);
  -long apr_atomic_cas_sparc(volatile apr_atomic_t *mem,long with,long cmp);
  +apr_uint32_t apr_atomic_add_sparc(volatile apr_atomic_t *mem, apr_uint32_t add);
  +apr_uint32_t apr_atomic_sub_sparc(volatile apr_atomic_t *mem, apr_uint32_t sub);
  +apr_uint32_t apr_atomic_cas_sparc(volatile apr_uint32_t *mem, long with, long cmp);
   
   #else
   #if APR_HAS_THREADS
  
  
  

Mime
View raw message