From c4a7631eb9235f72de569f5e578620c6e2bc6818 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 10 Sep 2007 03:49:12 +0000 Subject: UISIMULATOR: Do a graceful shutdown of all threads and avoid (mostly lockup) problems caused by not worrying about states. Have rockbox objects initialized only by rockbox threads save for the main 'gui' thread which is a needed exception. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14660 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/thread-sdl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'uisimulator/sdl/thread-sdl.h') diff --git a/uisimulator/sdl/thread-sdl.h b/uisimulator/sdl/thread-sdl.h index 90dffd6806..3739130f97 100644 --- a/uisimulator/sdl/thread-sdl.h +++ b/uisimulator/sdl/thread-sdl.h @@ -23,7 +23,8 @@ #include "SDL_thread.h" extern SDL_Thread *gui_thread; /* The "main" thread */ -void kill_sim_threads(); /* Kill all the rockbox sim threads */ +bool thread_sdl_init(void *param); /* Init the sim threading API - thread created calls app_main */ +void thread_sdl_shutdown(void); /* Shut down all kernel threads gracefully */ void thread_sdl_lock(void); /* Sync with SDL threads */ void thread_sdl_unlock(void); /* Sync with SDL threads */ -- cgit v1.2.3