From 424750ea95409c6e78188aa47fe7a0f47d1127cb Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 8 Sep 2007 23:50:36 +0000 Subject: 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 --- uisimulator/sdl/thread-sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit