summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-01-08 12:40:18 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-01-08 12:40:18 +0000
commitc5a2f543b263eadaa7a61841b22c546274260972 (patch)
tree198fc7ce0c54ca868692268484e59760586bbd25 /uisimulator
parent23825fdb4365ae3ef0ea71fbfbb99cbba5317b39 (diff)
downloadrockbox-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')
-rw-r--r--uisimulator/sdl/thread-sdl.c2
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];
* way to get them back in there so they may exit */
static jmp_buf thread_jmpbufs[MAXTHREADS];
static SDL_mutex *m;
-static bool threads_exit = false;
+static volatile bool threads_exit = false;
extern long start_tick;