From Mathias Froechlich, "Attached is a change to that atomic stuff to move the win32, msvc

implementation of the atomic increment and decrement into a implementation
file.
This way inlining and compiler optimization can no longer happen for these
implementations, but it fixes compilation on win32 msvc targets. I expect
that this is still faster than with with mutexes.

Also the i386 gcc target gets atomic operations with this patch. By using an
implementation file we can guarantee that we have the right compiler flags
available."
This commit is contained in:
Robert Osfield
2008-06-26 10:27:16 +00:00
parent 37765805ff
commit 5a4ce5a387
6 changed files with 231 additions and 123 deletions

View File

@@ -20,6 +20,7 @@ ADD_LIBRARY(${LIB_NAME}
PThreadMutexPrivateData.h
PThreadPrivateData.h
../common/Version.cpp
../common/Atomic.cpp
)
IF(OPENTHREADS_SONAMES)