Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove almost all instances of "volatile" keyword.
As Tiffany pointed out in Bugzilla, volatile is not useful for thread safety: https://software.intel.com/en-us/blogs/2007/11/30/volatile-almost-useless-for-multi-threaded-programming/ Some of these volatiles didn't need to be, some were otherwise protected by spinlocks or mutexes, and some got moved over to SDL_atomic_t data, etc. Fixes Bugzilla #3220.
- Loading branch information
Showing
with
66 additions
and 72 deletions.
- +1 −1 src/dynapi/SDL_dynapi.c
- +20 −18 src/events/SDL_events.c
- +1 −1 src/haptic/windows/SDL_windowshaptic.c
- +2 −2 src/haptic/windows/SDL_windowshaptic_c.h
- +2 −2 src/haptic/windows/SDL_xinputhaptic.c
- +17 −26 src/timer/SDL_timer.c
- +1 −1 src/video/android/SDL_androidtouch.c
- +6 −6 test/testatomic.c
- +7 −5 test/testlock.c
- +5 −6 test/testmultiaudio.c
- +4 −4 test/torturethread.c
Oops, something went wrong.