mirror of
https://github.com/yawut/SDL.git
synced 2026-09-14 12:06:26 -05:00
Since we're directly reading and writing 'active' from different threads, it needs to be flagged volatile.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user