diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-08 12:40:18 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-08 12:40:18 +0000 |
commit | c5a2f543b263eadaa7a61841b22c546274260972 (patch) | |
tree | 198fc7ce0c54ca868692268484e59760586bbd25 /uisimulator/sdl/thread-sdl.c | |
parent | 23825fdb4365ae3ef0ea71fbfbb99cbba5317b39 (diff) | |
download | rockbox-c5a2f543b263eadaa7a61841b22c546274260972.tar.gz rockbox-c5a2f543b263eadaa7a61841b22c546274260972.zip |
threads_exit should be volatile being polled in a loop on a sim thread and be written by the GUI thread.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19721 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/thread-sdl.c')
-rw-r--r-- | uisimulator/sdl/thread-sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/sdl/thread-sdl.c b/uisimulator/sdl/thread-sdl.c index 1522f318a6..ef7c86c3b4 100644 --- a/uisimulator/sdl/thread-sdl.c +++ b/uisimulator/sdl/thread-sdl.c | |||
@@ -57,7 +57,7 @@ struct thread_entry threads[MAXTHREADS]; | |||
57 | * way to get them back in there so they may exit */ | 57 | * way to get them back in there so they may exit */ |
58 | static jmp_buf thread_jmpbufs[MAXTHREADS]; | 58 | static jmp_buf thread_jmpbufs[MAXTHREADS]; |
59 | static SDL_mutex *m; | 59 | static SDL_mutex *m; |
60 | static bool threads_exit = false; | 60 | static volatile bool threads_exit = false; |
61 | 61 | ||
62 | extern long start_tick; | 62 | extern long start_tick; |
63 | 63 | ||