[*] i see a possible bug

This commit is contained in:
Reece Wilson 2023-03-16 22:18:07 +00:00
parent 1476307a60
commit a1f4614316

View File

@ -63,6 +63,7 @@ namespace Aurora::Threading::Primitives
#endif #endif
auto uEndTimeWall = AuTime::CurrentClockNS() + qwTimeout; auto uEndTimeWall = AuTime::CurrentClockNS() + qwTimeout;
auto uTargetTimeNt = AuTime::ConvertTimestampNs(uEndTimeWall); auto uTargetTimeNt = AuTime::ConvertTimestampNs(uEndTimeWall);
bool bIOU {};
while (true) while (true)
{ {
@ -71,11 +72,14 @@ namespace Aurora::Threading::Primitives
// forced smp stall // forced smp stall
// see the "hopefully nt is smart enough" comment // see the "hopefully nt is smart enough" comment
bool bIOU = DoTryIf([=]() if (!bIOU)
{ {
bool b = true; bIOU = DoTryIf([=]()
return CheckOut(b); {
}); bool b = true;
return CheckOut(b);
});
}
if (bRet) if (bRet)
{ {