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

View file

@ -171,6 +171,7 @@
#undef SDL_DEFAULT_ASSERT_LEVEL
/* Allow disabling of core subsystems */
#undef SDL_ATOMIC_DISABLED
#undef SDL_AUDIO_DISABLED
#undef SDL_CPUINFO_DISABLED
#undef SDL_EVENTS_DISABLED