system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (21)
430LazyCreateEvent(ref _readEvent, EnterLockType.Read);
436retVal = WaitOnEvent(_readEvent, ref _numReadWaiters, timeout, EnterLockType.Read);
628LazyCreateEvent(ref _waitUpgradeEvent, EnterLockType.UpgradeToWrite);
634retVal = WaitOnEvent(_waitUpgradeEvent, ref _numWriteUpgradeWaiters, timeout, EnterLockType.UpgradeToWrite);
645LazyCreateEvent(ref _writeEvent, EnterLockType.Write);
649retVal = WaitOnEvent(_writeEvent, ref _numWriteWaiters, timeout, EnterLockType.Write);
803LazyCreateEvent(ref _upgradeEvent, EnterLockType.UpgradeableRead);
808retVal = WaitOnEvent(_upgradeEvent, ref _numUpgradeWaiters, timeout, EnterLockType.UpgradeableRead);
984private void LazyCreateEvent(ref EventWaitHandle waitEvent, EnterLockType enterLockType)
996enterLockType == EnterLockType.Read ? EventResetMode.ManualReset : EventResetMode.AutoReset);
1001case EnterLockType.Read:
1002case EnterLockType.UpgradeableRead:
1006case EnterLockType.Write:
1011Debug.Assert(enterLockType == EnterLockType.UpgradeToWrite);
1031EnterLockType enterLockType)
1041case EnterLockType.UpgradeableRead:
1043goto case EnterLockType.Read;
1045case EnterLockType.Read:
1049case EnterLockType.Write:
1055Debug.Assert(enterLockType == EnterLockType.UpgradeToWrite);
1126if (enterLockType >= EnterLockType.Write)