1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2007-09-08 23:50:36 +00:00
parent 6e7971553e
commit 424750ea95

View file

@ -152,7 +152,7 @@ void sleep_thread(int ticks)
current = running; current = running;
current->statearg = STATE_SLEEPING; 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; running = current;
current->statearg = STATE_RUNNING; current->statearg = STATE_RUNNING;