2 writes to m_nCurrentIndexRange
mscorlib (2)
system\threading\Tasks\ParallelRangeManager.cs (2)
80
m_nCurrentIndexRange
= nInitialRange;
170
m_nCurrentIndexRange
= (m_nCurrentIndexRange + 1) % m_indexRanges.Length;
7 references to m_nCurrentIndexRange
mscorlib (7)
system\threading\Tasks\ParallelRangeManager.cs (7)
108
IndexRange currentRange = m_indexRanges[
m_nCurrentIndexRange
];
112
if (m_indexRanges[
m_nCurrentIndexRange
].m_nSharedCurrentIndexOffset == null)
114
Interlocked.CompareExchange(ref m_indexRanges[
m_nCurrentIndexRange
].m_nSharedCurrentIndexOffset, new Shared<long>(0), null);
126
fixed (long* indexPtr = &m_indexRanges[
m_nCurrentIndexRange
].m_nSharedCurrentIndexOffset.Value)
134
nMyOffset = Interlocked.Add(ref m_indexRanges[
m_nCurrentIndexRange
].m_nSharedCurrentIndexOffset.Value, m_nIncrementValue) - m_nIncrementValue;
165
Interlocked.Exchange(ref m_indexRanges[
m_nCurrentIndexRange
].m_bRangeFinished, 1);
170
m_nCurrentIndexRange = (
m_nCurrentIndexRange
+ 1) % m_indexRanges.Length;