[*] YieldPollNs nonzero timeout check
This commit is contained in:
parent
dbacc71870
commit
efa26dd99d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user