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:
parent
fead75812b
commit
112ad0ac42
2 changed files with 14 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue