[*] Not sure how WOA regressed

This commit is contained in:
Reece Wilson 2023-06-12 19:12:13 +01:00
parent 1a8acbdde5
commit b91ce52195

View File

@ -444,7 +444,8 @@ namespace Aurora::Threading
{
pLast->pNext = pCurrentHead->pNext;
}
else if (this->waitList.pHead == pCurrentHead)
if (this->waitList.pHead == pCurrentHead)
{
this->waitList.pHead = pCurrentHead->pNext;
}
@ -456,7 +457,7 @@ namespace Aurora::Threading
if (this->waitList.pTail == pCurrentHead)
{
this->waitList.pTail = pLast;
this->waitList.pTail = pCurrentHead->pBefore;
}
}
@ -525,7 +526,7 @@ namespace Aurora::Threading
{
Lock();
{
auto pCurrent = this->waitList.pHead;
auto pCurrent = this->waitList.pTail;
decltype(pCurrent) pLast {};
while (pCurrent)
{
@ -554,7 +555,7 @@ namespace Aurora::Threading
}
pLast = pCurrent;
pCurrent = pCurrent->pNext;
pCurrent = pCurrent->pBefore;
}
}
Unlock();