4 writes to m_combinedState
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (4)
114
m_combinedState
= (m_combinedState & ~SpinCountState_BitMask) | (value << SpinCountState_ShiftCount);
192
m_combinedState
= initialState ? (1 << SignalledState_ShiftCount) : 0;
633
m_combinedState
|= Dispose_BitMask; // set the dispose bit
690
if (Interlocked.CompareExchange(ref
m_combinedState
, newState, oldState) == oldState)
7 references to m_combinedState
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (7)
99
get => 0 != ExtractStatePortion(
m_combinedState
, SignalledState_BitMask);
108
get => ExtractStatePortionAndShiftRight(
m_combinedState
, SpinCountState_BitMask, SpinCountState_ShiftCount);
114
m_combinedState = (
m_combinedState
& ~SpinCountState_BitMask) | (value << SpinCountState_ShiftCount);
123
get => ExtractStatePortionAndShiftRight(
m_combinedState
, NumWaitersState_BitMask, NumWaitersState_ShiftCount);
630
if ((
m_combinedState
& Dispose_BitMask) != 0)
650
private bool IsDisposed => (
m_combinedState
& Dispose_BitMask) != 0;
684
int oldState =
m_combinedState
; // cache the old value for testing in CAS