[*] Another WakeOnAddress optimization
This commit is contained in:
parent
e9651eead3
commit
91cff7ae26
@ -295,7 +295,10 @@ namespace Aurora::Threading
|
|||||||
decltype(pCurrentHead) pLast {};
|
decltype(pCurrentHead) pLast {};
|
||||||
while (pCurrentHead)
|
while (pCurrentHead)
|
||||||
{
|
{
|
||||||
AU_LOCK_GUARD(pCurrentHead->mutex);
|
// Insertion barrier
|
||||||
|
{
|
||||||
|
AU_LOCK_GUARD(pCurrentHead->mutex);
|
||||||
|
}
|
||||||
|
|
||||||
auto [bCont, bRemove] = callback(*pCurrentHead);
|
auto [bCont, bRemove] = callback(*pCurrentHead);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user