[*] Optimization: Remove two stupid branches in RWLock
This commit is contained in:
parent
f847ab049a
commit
869512e651
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user