1 write to _numWriteUpgradeWaiters
System.Core (1)
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (1)
634
retVal = WaitOnEvent(_waitUpgradeEvent, ref
_numWriteUpgradeWaiters
, timeout, EnterLockType.UpgradeToWrite);
9 references to _numWriteUpgradeWaiters
System.Core (9)
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (9)
632
Debug.Assert(
_numWriteUpgradeWaiters
== 0, "There can be at most one thread with the upgrade lock held.");
1088
if (
_numWriteUpgradeWaiters
== 1)
1116
if (_numWriteWaiters == 0 &&
_numWriteUpgradeWaiters
== 0 && _numUpgradeWaiters == 0 && _numReadWaiters == 0)
1121
if (
_numWriteUpgradeWaiters
== 0)
1166
if (
_numWriteUpgradeWaiters
> 0 && _fUpgradeThreadHoldingRead && readercount == 2)
1174
if (readercount == 1 &&
_numWriteUpgradeWaiters
> 0)
1212
if (_numWriteWaiters != 0 ||
_numWriteUpgradeWaiters
!= 0 || HasNoWaiters)
1291
return HasNoWaiters || (_numWriteWaiters == 0 &&
_numWriteUpgradeWaiters
== 0);
1301
return isUpgradeToWrite ||
_numWriteUpgradeWaiters
== 0;