From 0107dfc8276d73744bb097d643809205ef21d97b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 9 Sep 2007 01:59:07 +0000 Subject: UISIMULATOR: Give the host OS some needed context switching hints (which _is_ supposed to work on Linux - but I can't tell on VMWare - and does on Windows). I guess I'll know for sure soon. Give sleep() even more genuine behavior. Add some button driver sync with the rockbox threads that should have been there for some time - this is basically interrupt-like processing as any thread not in the kernel pool should be considered. Make the screendump work again by posting the request. Perhaps help out shutting down for some users but not in the way I'd prefer - to think about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14646 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/thread-sdl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uisimulator/sdl/thread-sdl.h') diff --git a/uisimulator/sdl/thread-sdl.h b/uisimulator/sdl/thread-sdl.h index 20641fb673..90dffd6806 100644 --- a/uisimulator/sdl/thread-sdl.h +++ b/uisimulator/sdl/thread-sdl.h @@ -24,6 +24,8 @@ extern SDL_Thread *gui_thread; /* The "main" thread */ void kill_sim_threads(); /* Kill all the rockbox sim threads */ +void thread_sdl_lock(void); /* Sync with SDL threads */ +void thread_sdl_unlock(void); /* Sync with SDL threads */ #endif /* #ifndef __THREADSDL_H__ */ -- cgit v1.2.3