5 writes to m_headIndex
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (5)
155
m_headIndex
= 0;
200
m_headIndex
&= m_mask;
255
m_headIndex
++;
350
Interlocked.Exchange(ref
m_headIndex
, head + 1);
369
Interlocked.Exchange(ref
m_headIndex
, head);
13 references to m_headIndex
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (13)
125
if (tail <
m_headIndex
+ m_mask)
142
int head =
m_headIndex
;
143
int count = m_tailIndex -
m_headIndex
;
202
Debug.Assert(
m_headIndex
<= m_tailIndex);
232
for (int i = m_tailIndex - 2; i >=
m_headIndex
; i--)
254
else if (i ==
m_headIndex
)
270
public object? LocalPop() =>
m_headIndex
< m_tailIndex ? LocalPopCore() : null;
277
if (
m_headIndex
>= tail)
287
if (
m_headIndex
<= tail)
306
if (
m_headIndex
<= tail)
334
public bool CanSteal =>
m_headIndex
< m_tailIndex;
349
int head =
m_headIndex
;
394
return Math.Max(0, m_tailIndex -
m_headIndex
);