summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/thread-sdl.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-09-08 23:50:36 +0000
committerJens Arnold <amiconn@rockbox.org>2007-09-08 23:50:36 +0000
commit424750ea95409c6e78188aa47fe7a0f47d1127cb (patch)
tree7546d443838778ff7af40bc2bc95a22ed4aa051b /uisimulator/sdl/thread-sdl.c
parent6e7971553e021a7fe72987490439bf9a5475fb44 (diff)
downloadrockbox-424750ea95409c6e78188aa47fe7a0f47d1127cb.tar.gz
rockbox-424750ea95409c6e78188aa47fe7a0f47d1127cb.tar.bz2
rockbox-424750ea95409c6e78188aa47fe7a0f47d1127cb.zip
Make sleep(0) in the sim behave more like on target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14645 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/thread-sdl.c')
-rw-r--r--uisimulator/sdl/thread-sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/sdl/thread-sdl.c b/uisimulator/sdl/thread-sdl.c
index 5d2fe0b522..aac8e2fbb9 100644
--- a/uisimulator/sdl/thread-sdl.c
+++ b/uisimulator/sdl/thread-sdl.c
@@ -152,7 +152,7 @@ void sleep_thread(int ticks)
current = running;
current->statearg = STATE_SLEEPING;
- SDL_CondWaitTimeout(current->context.c, m, (1000/HZ) * ticks);
+ SDL_CondWaitTimeout(current->context.c, m, (1000/HZ) * ticks + (500/HZ));
running = current;
current->statearg = STATE_RUNNING;