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