1
0
Fork 0
forked from len0rd/rockbox

pdbox: Code cleanup

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26274 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Wincent Balin 2010-05-24 23:38:04 +00:00
parent fead75812b
commit 112ad0ac42
2 changed files with 14 additions and 20 deletions

View file

@ -399,7 +399,9 @@ static
#endif
void sched_tick(t_time next_sys_time)
{
#ifndef ROCKBOX
int countdown = 5000;
#endif
while (clock_setlist && clock_setlist->c_settime < next_sys_time)
{
t_clock *c = clock_setlist;
@ -407,13 +409,13 @@ void sched_tick(t_time next_sys_time)
clock_unset(clock_setlist);
outlet_setstacklim();
(*c->c_fn)(c->c_owner);
#ifndef ROCKBOX
if (!countdown--)
{
countdown = 5000;
#ifndef ROCKBOX
sys_pollgui();
#endif
}
#endif
if (sys_quit)
return;
}