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