[*] YieldPollNs nonzero timeout check

This commit is contained in:
Reece Wilson 2024-05-27 16:02:54 +01:00
parent dbacc71870
commit efa26dd99d

View File

@ -55,7 +55,8 @@ namespace Aurora::Threading
{ {
while (!Primitives::DoTryIf(cb)) while (!Primitives::DoTryIf(cb))
{ {
if (Time::SteadyClockNS() >= qwAbsTimeoutNs) if (qwAbsTimeoutNs &&
Time::SteadyClockNS() >= qwAbsTimeoutNs)
{ {
return false; return false;
} }