[*] atomicity bug fix: hold up this is bad
This commit is contained in:
parent
d755a9d651
commit
6c25b5a5e6
@ -182,7 +182,7 @@ namespace Aurora::Threading::Primitives
|
||||
auto uEndTimeWall = AuTime::CurrentClockNS() + uTimeout;
|
||||
bool bFailed {};
|
||||
|
||||
while ((!TryLock()) || bFailed)
|
||||
while (bFailed || (!TryLock()))
|
||||
{
|
||||
auto uValue = uValueRef | 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user