2 writes to _pState
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelThreadBlocker.cs (2)
40_pState = (int*)NativeMemory.AlignedAlloc(Internal.PaddingHelpers.CACHE_LINE_SIZE, Internal.PaddingHelpers.CACHE_LINE_SIZE); 65_pState = null;
13 references to _pState
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelThreadBlocker.cs (13)
41*_pState = 0; 59if (_pState == null) 64NativeMemory.AlignedFree(_pState); 129int originalState = *_pState; 132LowLevelFutex.WaitOnAddress(_pState, originalState); 133originalState = *_pState; 136if (Interlocked.CompareExchange(ref *_pState, originalState - 1, originalState) == originalState) 155int originalState = *_pState; 158if (!LowLevelFutex.WaitOnAddressTimeout(_pState, originalState, timeoutMs)) 169originalState = *_pState; 172if (Interlocked.CompareExchange(ref *_pState, originalState - 1, originalState) == originalState) 181Interlocked.Increment(ref *_pState); 182LowLevelFutex.WakeByAddressSingle(_pState);