[*] Another WakeOnAddress optimization

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

View File

@ -294,8 +294,11 @@ namespace Aurora::Threading
auto pCurrentHead = this->waitList.pTail;
decltype(pCurrentHead) pLast {};
while (pCurrentHead)
{
// Insertion barrier
{
AU_LOCK_GUARD(pCurrentHead->mutex);
}
auto [bCont, bRemove] = callback(*pCurrentHead);