[*] RWLock: added another SignalManyWriter condition to ensure upgrades never get missed

This commit is contained in:
Reece Wilson 2023-08-24 11:45:15 +01:00
parent 1ecd46ddbf
commit 935d1b6ab2

View File

@ -423,7 +423,15 @@ namespace Aurora::Threading::Primitives
{
break;
}
if constexpr (bIsWriteRecursionAllowed)
{
if (AuAtomicLoad(&this->state_) == 1)
{
this->SignalManyWriter();
}
}
if (!bStatusTwo)
{
while (true)