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