[*] Ensure WaitFor always respects 0 timeouts, no matter the flags

This commit is contained in:
Reece Wilson 2023-09-12 22:06:55 +01:00
parent 6ff27c6855
commit 729c9f8508

View File

@ -118,7 +118,8 @@ namespace Aurora::Threading
qwTimeoutAbs = AuMSToNS<AuUInt64>(uTimeout); qwTimeoutAbs = AuMSToNS<AuUInt64>(uTimeout);
} }
if (!(uFlags & kWaitForFlagTimeoutIsAbsolute)) if ((!(uFlags & kWaitForFlagTimeoutIsAbsolute)) &&
(uTimeout))
{ {
qwTimeoutAbs += AuTime::SteadyClockNS(); qwTimeoutAbs += AuTime::SteadyClockNS();
} }