1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix waiting for absolute time on clocks.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-10-06 14:21:28 +02:00
parent 1206113425
commit e20dd6ed06

View file

@ -277,7 +277,7 @@ struct timespec Clock::SleepUntil(struct timespec expiration)
struct timespec now = current_time; struct timespec now = current_time;
UnlockClock(); UnlockClock();
if ( timespec_le(now, expiration) ) if ( timespec_le(expiration, now) )
break; break;
if ( Signal::IsPending() ) if ( Signal::IsPending() )