[*] IsSignaled was blocking

This commit is contained in:
Reece Wilson 2022-03-30 19:46:19 +01:00
parent c1976d771b
commit 2c21d130ee

View File

@ -653,12 +653,20 @@ namespace Aurora::Loop
else
{
auto now = AuTime::CurrentInternalClockMS();
if (timeout && timeout <= now)
{
return false;
}
AuUInt sleepDelta;
auto sleepDelta = timeout - now;
if (timeout)
{
if (timeout <= now)
{
return false;
}
sleepDelta = timeout - now;
}
else
{
sleepDelta = 0;
}
if (this->bIsWinLoop_)
{