Commit 1721057e authored by Joanne Hugé's avatar Joanne Hugé

Fix issue causin delayed wake ups

parent 207de87e
...@@ -94,7 +94,7 @@ static void *timerthread_poll(void *p) { ...@@ -94,7 +94,7 @@ static void *timerthread_poll(void *p) {
for(;;) { for(;;) {
clock_gettime(CLOCK_ID, &current); clock_gettime(CLOCK_ID, &current);
if( current.tv_nsec >= next.tv_nsec) if( current.tv_sec >= next.tv_sec || (current.tv_sec == next.tv_sec == current.tv_nsec >= next.tv_nsec) )
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment