[*] FutexCondWaitable infinite sleep fix

This commit is contained in:
Reece Wilson 2023-08-19 22:29:09 +01:00
parent 202df79d0b
commit 2d2d66f410

View File

@ -30,7 +30,7 @@ namespace Aurora::Threading::Waitables
}
auto bSuccess = this->TryLock2() ||
this->SleepOne(Time::SteadyClockNS() + uRelativeNanoseconds);
this->SleepOne(uRelativeNanoseconds ? Time::SteadyClockNS() + uRelativeNanoseconds : 0);
if (!bSuccess)
{