[*] optimization: cea33621
cont
This commit is contained in:
parent
e7ec875851
commit
4ad70cadb4
@ -559,7 +559,8 @@ namespace Aurora::Threading::Primitives
|
||||
template<bool bIsWriteRecursionAllowed>
|
||||
bool RWLockImpl<bIsWriteRecursionAllowed>::TryLockRead()
|
||||
{
|
||||
if (gRuntimeConfig.threadingConfig.bPreferRWLockReadLockSpin)
|
||||
if (gRuntimeConfig.threadingConfig.bPreferRWLockReadLockSpin &&
|
||||
AuAtomicLoad(&this->writersPending_) == 0)
|
||||
{
|
||||
return DoTryIf([=]()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user