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