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;
59
if (
_pState
== null)
64
NativeMemory.AlignedFree(
_pState
);
129
int originalState = *
_pState
;
132
LowLevelFutex.WaitOnAddress(
_pState
, originalState);
133
originalState = *
_pState
;
136
if (Interlocked.CompareExchange(ref *
_pState
, originalState - 1, originalState) == originalState)
155
int originalState = *
_pState
;
158
if (!LowLevelFutex.WaitOnAddressTimeout(
_pState
, originalState, timeoutMs))
169
originalState = *
_pState
;
172
if (Interlocked.CompareExchange(ref *
_pState
, originalState - 1, originalState) == originalState)
181
Interlocked.Increment(ref *
_pState
);
182
LowLevelFutex.WakeByAddressSingle(
_pState
);