1
0
Fork 0
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:
Bertrik Sikken 2009-10-18 15:50:30 +00:00
parent 1c64a4d3e0
commit d24d885aa4
14 changed files with 29 additions and 30 deletions

View file

@ -643,7 +643,7 @@ void calc_mandelbrot_low_prec(void)
/* be nice to other threads:
* if at least one tick has passed, yield */
if (*rb->current_tick > last_yield) {
if (TIME_AFTER(*rb->current_tick, last_yield)) {
rb->yield();
last_yield = *rb->current_tick;
}
@ -706,7 +706,7 @@ void calc_mandelbrot_high_prec(void)
/* be nice to other threads:
* if at least one tick has passed, yield */
if (*rb->current_tick > last_yield) {
if (TIME_AFTER(*rb->current_tick, last_yield)) {
rb->yield();
last_yield = *rb->current_tick;
}