# HG changeset patch # User Sam Lantinga # Date 1296098416 28800 # Node ID 42a7591530d5c7a02d955358351959ca2895c77d # Parent cce11d33d5c638645c4e23ce452b51951cf4b289 Since we're directly reading and writing 'active' from different threads, it needs to be flagged volatile. diff -r cce11d33d5c6 -r 42a7591530d5 test/testatomic.c --- a/test/testatomic.c Wed Jan 26 12:23:32 2011 -0800 +++ b/test/testatomic.c Wed Jan 26 19:20:16 2011 -0800 @@ -278,7 +278,7 @@ char cache_pad4[CACHELINE-sizeof(SDL_SpinLock)-2*sizeof(SDL_atomic_t)]; #endif - SDL_bool active; + volatile SDL_bool active; /* Only needed for the mutex test */ SDL_mutex *mutex;