You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2006/05/13 19:00:33 UTC
svn commit: r406131 - in /logging/log4cxx/trunk: src/objectptr.cpp
tests/src/threadtest.cpp
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
}