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