From c5a2f543b263eadaa7a61841b22c546274260972 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 8 Jan 2009 12:40:18 +0000 Subject: 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 --- uisimulator/sdl/thread-sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uisimulator/sdl/thread-sdl.c') 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; -- cgit v1.2.3