forked from len0rd/rockbox
Use wrap-safe TIME_BEFORE/TIME_AFTER macros to compare times with current_time, instead of comparing them directly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23246 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1c64a4d3e0
commit
d24d885aa4
14 changed files with 29 additions and 30 deletions
|
|
@ -352,7 +352,7 @@ static bool do_timed_yield(void)
|
|||
{
|
||||
/* Sorting can lock up for quite a while, so yield occasionally */
|
||||
static long wakeup_tick = 0;
|
||||
if (current_tick >= wakeup_tick)
|
||||
if (TIME_AFTER(current_tick, wakeup_tick))
|
||||
{
|
||||
wakeup_tick = current_tick + (HZ/4);
|
||||
yield();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue