17 references to Writer
System.Threading (17)
System\Threading\ReaderWriterLock.cs (17)
120(knownState & LockStates.Writer) == 0 && 272Debug.Assert((_state & LockStates.Writer) == 0); 287if (Interlocked.CompareExchange(ref _state, LockStates.Writer, 0) == 0) 313currentState = Interlocked.CompareExchange(ref _state, knownState + LockStates.Writer, knownState); 374modifyState += LockStates.Writer - LockStates.WriterSignaled; 406modifyState = LockStates.Writer - LockStates.WriterSignaled; 409Debug.Assert((knownState & LockStates.Writer) == 0); 430Debug.Assert((_state & LockStates.Writer) != 0); 458Debug.Assert((_state & LockStates.Writer) == 0); 531Debug.Assert((knownState & LockStates.Writer) == 0); 571Debug.Assert((_state & LockStates.Writer) != 0); 592int modifyState = -LockStates.Writer; 633else if (knownState == LockStates.Writer && (_readerEvent != null || _writerEvent != null)) 640Debug.Assert((knownState & LockStates.Writer) != 0); 702int knownState = Interlocked.CompareExchange(ref _state, LockStates.Writer, LockStates.Reader); 783int modifyState = LockStates.Reader - LockStates.Writer; 941if (Interlocked.CompareExchange(ref _state, LockStates.Writer, 0) == 0)