diff --git a/Source/Threading/Primitives/AuMutex.NT.cpp b/Source/Threading/Primitives/AuMutex.NT.cpp index 76350167..c62a8da1 100644 --- a/Source/Threading/Primitives/AuMutex.NT.cpp +++ b/Source/Threading/Primitives/AuMutex.NT.cpp @@ -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;