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:
parent
1206113425
commit
e20dd6ed06
1 changed files with 1 additions and 1 deletions
|
@ -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() )
|
||||||
|
|
Loading…
Reference in a new issue