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