[*] Optimization: Remove two stupid branches in RWLock

This commit is contained in:
Reece Wilson 2023-08-21 16:33:32 +01:00
parent f847ab049a
commit 869512e651

View File

@ -321,12 +321,6 @@ namespace Aurora::Threading::Primitives
AuAtomicSub(&this->writersPending_, 1);
return true;
}
else
{
// TBD:
this->GetConditionWriter().Broadcast();
this->GetCondition().Broadcast();
}
}
return true;
@ -412,12 +406,6 @@ namespace Aurora::Threading::Primitives
AuAtomicSub(&this->writersPending_, 1);
return true;
}
else
{
// TBD:
this->GetConditionWriter().Broadcast();
this->GetCondition().Broadcast();
}
}
return true;