Mercurial > sdl-ios-xcode
view Xcode/SDLTest/sdlcommon_prefix.h @ 5004:0c72ae7b7cb2
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
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 16 Jan 2011 15:16:39 -0800 |
parents | d44a0a913aa2 |
children |
line wrap: on
line source
/* * sdlcommon_prefix.h * SDLTest * * Created by Darrell Walisser on Wed Aug 06 2003. * Copyright (c) 2003 __MyCompanyName__. All rights reserved. * */ #ifndef _SDLCOMMON_PREFIX_H_ #define _SDLCOMMON_PREFIX_H_ #include "SDL.h" #endif