Sander,
Would please move the tag for 2.0.51-RC3 on apr_atomic.h.
The following change fixes a bug on NetWare. It is
in NetWare specific code.
Thanks,
JJ
>>> [EMAIL PROTECTED] 09/02/04 2:13 PM >>> 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) |