[*] Ensure WaitFor always respects 0 timeouts, no matter the flags
This commit is contained in:
parent
6ff27c6855
commit
729c9f8508
@ -118,7 +118,8 @@ namespace Aurora::Threading
|
||||
qwTimeoutAbs = AuMSToNS<AuUInt64>(uTimeout);
|
||||
}
|
||||
|
||||
if (!(uFlags & kWaitForFlagTimeoutIsAbsolute))
|
||||
if ((!(uFlags & kWaitForFlagTimeoutIsAbsolute)) &&
|
||||
(uTimeout))
|
||||
{
|
||||
qwTimeoutAbs += AuTime::SteadyClockNS();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user