[*] atomicity bug fix: hold up this is bad

This commit is contained in:
Reece Wilson 2023-04-03 10:13:29 +01:00
parent d755a9d651
commit 6c25b5a5e6

View File

@ -182,7 +182,7 @@ namespace Aurora::Threading::Primitives
auto uEndTimeWall = AuTime::CurrentClockNS() + uTimeout; auto uEndTimeWall = AuTime::CurrentClockNS() + uTimeout;
bool bFailed {}; bool bFailed {};
while ((!TryLock()) || bFailed) while (bFailed || (!TryLock()))
{ {
auto uValue = uValueRef | 1; auto uValue = uValueRef | 1;