apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: apr/include apr_atomic.h
Date Thu, 02 Sep 2004 20:13:32 GMT
clar        2004/09/02 13:13:32

  Modified:    include  Tag: APR_0_9_BRANCH apr_atomic.h
  Log:
  Fixed apr_atomic_dec on NetWare to be thread safe
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.48.2.4  +1 -2      apr/include/apr_atomic.h
  
  Index: apr_atomic.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_atomic.h,v
  retrieving revision 1.48.2.3
  retrieving revision 1.48.2.4
  diff -u -r1.48.2.3 -r1.48.2.4
  --- apr_atomic.h	13 Jul 2004 09:22:41 -0000	1.48.2.3
  +++ apr_atomic.h	2 Sep 2004 20:13:32 -0000	1.48.2.4
  @@ -150,8 +150,7 @@
   
   inline int apr_atomic_dec(apr_atomic_t *mem) 
   {
  -    atomic_dec(mem);
  -    return *mem; 
  +    return (atomic_xchgadd(mem, 0xFFFFFFFF) - 1);
   }
   
   inline void *apr_atomic_casptr(void **mem, void *with, const void *cmp)
  
  
  

Mime
View raw message