Commit 9b3ce56b authored by Sam Lantinga's avatar Sam Lantinga

Since we're directly reading and writing 'active' from different threads, it...

Since we're directly reading and writing 'active' from different threads, it needs to be flagged volatile.
parent 9edcf9bc
......@@ -278,7 +278,7 @@ typedef struct
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment