11 references to Reader
System.Threading (11)
System\Threading\ReaderWriterLock.cs (11)
85if (Interlocked.CompareExchange(ref _state, LockStates.Reader, 0) == 0) 132currentState = Interlocked.CompareExchange(ref _state, knownState + LockStates.Reader, knownState); 209modifyState += LockStates.Reader; 241Interlocked.Add(ref _state, LockStates.Reader - LockStates.ReaderSignaled); 480int modifyState = -LockStates.Reader; 482if ((knownState & (LockStates.ReadersMask | LockStates.ReaderSignaled)) == LockStates.Reader) 524else if (knownState == LockStates.Reader && (_readerEvent != null || _writerEvent != null)) 702int knownState = Interlocked.CompareExchange(ref _state, LockStates.Writer, LockStates.Reader); 703if (knownState == LockStates.Reader) 783int modifyState = LockStates.Reader - LockStates.Writer; 958Interlocked.CompareExchange(ref _state, knownState + LockStates.Reader, knownState) == knownState)