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

@ -3985,7 +3985,14 @@
isa = PBXProject;
buildConfigurationList = 001B5A0C08BDB826006539E9 /* Build configuration list for PBXProject "SDLTest" */;
compatibilityVersion = "Xcode 3.0";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 08FB7794FE84155DC02AAC07 /* SDLTest */;
projectDirPath = "";
projectReferences = (