Author: carnold Date: Sat May 13 10:00:32 2006 New Revision: 406131 URL: http://svn.apache.org/viewcvs?rev=406131&view=rev Log: Bug LOGCXX-132: Various segmentation faults
Removed: logging/log4cxx/trunk/tests/src/threadtest.cpp Modified: logging/log4cxx/trunk/src/objectptr.cpp Modified: logging/log4cxx/trunk/src/objectptr.cpp URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/src/objectptr.cpp?rev=406131&r1=406130&r2=406131&view=diff ============================================================================== --- logging/log4cxx/trunk/src/objectptr.cpp (original) +++ logging/log4cxx/trunk/src/objectptr.cpp Sat May 13 10:00:32 2006 @@ -29,6 +29,10 @@ } void* ObjectPtrBase::exchange(volatile void** destination, void* newValue) { +#if defined(_WIN32) + return InterlockedExchangePointer(destination, newValue); +#else return apr_atomic_casptr(destination, newValue, (const void*) *destination); +#endif }