[*] Another WakeOnAddress optimization
This commit is contained in:
parent
e9651eead3
commit
91cff7ae26
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user