4 writes to m_combinedState
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (4)
115
m_combinedState
= (m_combinedState & ~SpinCountState_BitMask) | (value << SpinCountState_ShiftCount);
193
m_combinedState
= initialState ? (1 << SignalledState_ShiftCount) : 0;
627
m_combinedState
|= Dispose_BitMask; // set the dispose bit
684
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)
100
get => 0 != ExtractStatePortion(
m_combinedState
, SignalledState_BitMask);
109
get => ExtractStatePortionAndShiftRight(
m_combinedState
, SpinCountState_BitMask, SpinCountState_ShiftCount);
115
m_combinedState = (
m_combinedState
& ~SpinCountState_BitMask) | (value << SpinCountState_ShiftCount);
124
get => ExtractStatePortionAndShiftRight(
m_combinedState
, NumWaitersState_BitMask, NumWaitersState_ShiftCount);
624
if ((
m_combinedState
& Dispose_BitMask) != 0)
644
private bool IsDisposed => (
m_combinedState
& Dispose_BitMask) != 0;
678
int oldState =
m_combinedState
; // cache the old value for testing in CAS