Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Since we're directly reading and writing 'active' from different thre…

…ads, it needs to be flagged volatile.
  • Loading branch information
slouken committed Jan 27, 2011
1 parent 0c9fbf8 commit 8fcd406671dd93b0385ec024000a8f078ecec611
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/testatomic.c
@@ -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;

0 comments on commit 8fcd406

Please sign in to comment.