[*] Reference futex semaphore fix timeout = 0 under ::LockNS

This commit is contained in:
Reece Wilson 2023-11-18 09:19:10 +00:00
parent 37adbad397
commit daeb5ba06f

View File

@ -111,7 +111,7 @@ namespace Aurora::Threading::Waitables
return true; return true;
} }
auto qwEndTime = Time::SteadyClockNS() + qwTimeout; auto qwEndTime = qwTimeout ? Time::SteadyClockNS() + qwTimeout : 0;
if (TryLock()) if (TryLock())
{ {