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:
parent
6e7971553e
commit
424750ea95
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue