[*] Another WakeOnAddress optimization

This commit is contained in:
Reece Wilson 2023-12-05 07:15:54 +00:00
parent e9651eead3
commit 91cff7ae26

View File

@ -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);