Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.

Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
This commit is contained in:
Sam Lantinga 2011-01-16 15:16:39 -08:00
parent 1bc8fe69ce
commit b0e0f61c7e
8 changed files with 301 additions and 62 deletions

View file

@ -43,6 +43,8 @@ typedef unsigned long uintptr_t;
#define SDL_HAS_64BIT_TYPE 1
#define HAVE_GCC_ATOMICS 1
#define HAVE_ALLOCA_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_STDIO_H 1