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/19 18:34:30 UTC
svn commit: r407850 - /logging/log4cxx/trunk/src/objectptr.cpp
Author: carnold
Date: Fri May 19 09:34:30 2006
New Revision: 407850
URL: http://svn.apache.org/viewvc?rev=407850&view=rev
Log:
LOGCXX-132: Switch from InterlockedExchangePointer back to APR atomic
Modified:
logging/log4cxx/trunk/src/objectptr.cpp
Modified: logging/log4cxx/trunk/src/objectptr.cpp
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/objectptr.cpp?rev=407850&r1=407849&r2=407850&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/objectptr.cpp (original)
+++ logging/log4cxx/trunk/src/objectptr.cpp Fri May 19 09:34:30 2006
@@ -29,10 +29,6 @@
}
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
}