diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-12-03 14:01:12 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-12-03 14:01:12 +0000 |
commit | a4d19b7e899a9223433fcb91627af737a638e9d3 (patch) | |
tree | c3ca7e9782f7029ca0226969c1e402f20d4fa444 /uisimulator/sdl/thread-sdl.h | |
parent | 08533e7f37f9bd97a5653b137a179111f37d63f6 (diff) | |
download | rockbox-a4d19b7e899a9223433fcb91627af737a638e9d3.tar.gz rockbox-a4d19b7e899a9223433fcb91627af737a638e9d3.zip |
Simplify the uisimulator I/O routine and let the rockbox thread calling the functions be the background thread. Should speed things up too and lose none of the advantanges of background I/O.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15870 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/thread-sdl.h')
-rw-r--r-- | uisimulator/sdl/thread-sdl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/uisimulator/sdl/thread-sdl.h b/uisimulator/sdl/thread-sdl.h index 3739130f97..0f3b7b6d3a 100644 --- a/uisimulator/sdl/thread-sdl.h +++ b/uisimulator/sdl/thread-sdl.h | |||
@@ -23,6 +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 thread_sdl_thread_lock(void *me); | ||
27 | void * thread_sdl_thread_unlock(void); | ||
26 | bool thread_sdl_init(void *param); /* Init the sim threading API - thread created calls app_main */ | 28 | 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 */ | 29 | void thread_sdl_shutdown(void); /* Shut down all kernel threads gracefully */ |
28 | void thread_sdl_lock(void); /* Sync with SDL threads */ | 30 | void thread_sdl_lock(void); /* Sync with SDL threads */ |