5 writes to m_headIndex
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (5)
158
m_headIndex
= 0;
203
m_headIndex
&= m_mask;
258
m_headIndex
++;
353
Interlocked.Exchange(ref
m_headIndex
, head + 1);
369
m_headIndex
= head;
13 references to m_headIndex
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (13)
128
if (tail <
m_headIndex
+ m_mask)
145
int head =
m_headIndex
;
146
int count = m_tailIndex -
m_headIndex
;
205
Debug.Assert(
m_headIndex
<= m_tailIndex);
235
for (int i = m_tailIndex - 2; i >=
m_headIndex
; i--)
257
else if (i ==
m_headIndex
)
273
public object? LocalPop() =>
m_headIndex
< m_tailIndex ? LocalPopCore() : null;
280
if (
m_headIndex
>= tail)
290
if (
m_headIndex
<= tail)
309
if (
m_headIndex
<= tail)
337
public bool CanSteal =>
m_headIndex
< m_tailIndex;
352
int head =
m_headIndex
;
394
return Math.Max(0, m_tailIndex -
m_headIndex
);