summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/thread-sdl.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-12-03 14:01:12 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-12-03 14:01:12 +0000
commita4d19b7e899a9223433fcb91627af737a638e9d3 (patch)
treec3ca7e9782f7029ca0226969c1e402f20d4fa444 /uisimulator/sdl/thread-sdl.h
parent08533e7f37f9bd97a5653b137a179111f37d63f6 (diff)
downloadrockbox-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.h2
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
25extern SDL_Thread *gui_thread; /* The "main" thread */ 25extern SDL_Thread *gui_thread; /* The "main" thread */
26void thread_sdl_thread_lock(void *me);
27void * thread_sdl_thread_unlock(void);
26bool thread_sdl_init(void *param); /* Init the sim threading API - thread created calls app_main */ 28bool thread_sdl_init(void *param); /* Init the sim threading API - thread created calls app_main */
27void thread_sdl_shutdown(void); /* Shut down all kernel threads gracefully */ 29void thread_sdl_shutdown(void); /* Shut down all kernel threads gracefully */
28void thread_sdl_lock(void); /* Sync with SDL threads */ 30void thread_sdl_lock(void); /* Sync with SDL threads */