It's now possible to disable the fast atomic operations, at a huge performance penalty.

This commit is contained in:
Sam Lantinga 2011-02-07 22:57:33 -08:00
parent 8253658837
commit 8f205278b1
4 changed files with 30 additions and 1 deletions

View file

@ -141,6 +141,9 @@ void _ReadWriteBarrier(void);
/* Platform specific optimized versions of the atomic functions,
* you can disable these by defining SDL_DISABLE_ATOMIC_INLINE
*/
#if SDL_ATOMIC_DISABLED
#define SDL_DISABLE_ATOMIC_INLINE
#endif
#ifndef SDL_DISABLE_ATOMIC_INLINE
#ifdef HAVE_MSC_ATOMICS