[*] i see a possible bug
This commit is contained in:
parent
1476307a60
commit
a1f4614316
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user