diff --git a/Source/Threading/AuWakeOnAddress.cpp b/Source/Threading/AuWakeOnAddress.cpp index 643a2571..3c546a75 100644 --- a/Source/Threading/AuWakeOnAddress.cpp +++ b/Source/Threading/AuWakeOnAddress.cpp @@ -295,7 +295,10 @@ namespace Aurora::Threading decltype(pCurrentHead) pLast {}; while (pCurrentHead) { - AU_LOCK_GUARD(pCurrentHead->mutex); + // Insertion barrier + { + AU_LOCK_GUARD(pCurrentHead->mutex); + } auto [bCont, bRemove] = callback(*pCurrentHead);