5 writes to m_headIndex
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (5)
154
m_headIndex
= 0;
191
m_headIndex
&= m_mask;
246
m_headIndex
++;
341
Interlocked.Exchange(ref
m_headIndex
, head + 1);
357
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)
141
int head =
m_headIndex
;
142
int count = m_tailIndex -
m_headIndex
;
193
Debug.Assert(
m_headIndex
<= m_tailIndex);
223
for (int i = m_tailIndex - 2; i >=
m_headIndex
; i--)
245
else if (i ==
m_headIndex
)
261
public object? LocalPop() =>
m_headIndex
< m_tailIndex ? LocalPopCore() : null;
268
if (
m_headIndex
>= tail)
278
if (
m_headIndex
<= tail)
297
if (
m_headIndex
<= tail)
325
public bool CanSteal =>
m_headIndex
< m_tailIndex;
340
int head =
m_headIndex
;
382
return Math.Max(0, m_tailIndex -
m_headIndex
);