diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-09-10 03:49:12 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-09-10 03:49:12 +0000 |
commit | c4a7631eb9235f72de569f5e578620c6e2bc6818 (patch) | |
tree | 1e67525787351b2637fab8a4fe0ae140398c9219 /uisimulator/sdl/thread-sdl.h | |
parent | 2e305c6381c72aaabc6d0f92459b32d8939691fb (diff) | |
download | rockbox-c4a7631eb9235f72de569f5e578620c6e2bc6818.tar.gz rockbox-c4a7631eb9235f72de569f5e578620c6e2bc6818.zip |
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
Diffstat (limited to 'uisimulator/sdl/thread-sdl.h')
-rw-r--r-- | uisimulator/sdl/thread-sdl.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
23 | #include "SDL_thread.h" | 23 | #include "SDL_thread.h" |
24 | 24 | ||
25 | extern SDL_Thread *gui_thread; /* The "main" thread */ | 25 | extern SDL_Thread *gui_thread; /* The "main" thread */ |
26 | void kill_sim_threads(); /* Kill all the rockbox sim threads */ | 26 | bool thread_sdl_init(void *param); /* Init the sim threading API - thread created calls app_main */ |
27 | void thread_sdl_shutdown(void); /* Shut down all kernel threads gracefully */ | ||
27 | void thread_sdl_lock(void); /* Sync with SDL threads */ | 28 | void thread_sdl_lock(void); /* Sync with SDL threads */ |
28 | void thread_sdl_unlock(void); /* Sync with SDL threads */ | 29 | void thread_sdl_unlock(void); /* Sync with SDL threads */ |
29 | 30 | ||