Since we're directly reading and writing 'active' from different threads, it needs to be flagged volatile.
This commit is contained in:
parent
9edcf9bc9b
commit
9b3ce56bfd
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ typedef struct
|
||||||
char cache_pad4[CACHELINE-sizeof(SDL_SpinLock)-2*sizeof(SDL_atomic_t)];
|
char cache_pad4[CACHELINE-sizeof(SDL_SpinLock)-2*sizeof(SDL_atomic_t)];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SDL_bool active;
|
volatile SDL_bool active;
|
||||||
|
|
||||||
/* Only needed for the mutex test */
|
/* Only needed for the mutex test */
|
||||||
SDL_mutex *mutex;
|
SDL_mutex *mutex;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue