2 writes to _nCurrentIndexRange
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\ParallelRangeManager.cs (2)
75_nCurrentIndexRange = nInitialRange; 165_nCurrentIndexRange = (_nCurrentIndexRange + 1) % _indexRanges.Length;
6 references to _nCurrentIndexRange
System.Threading.Tasks.Parallel (6)
System\Threading\Tasks\ParallelRangeManager.cs (6)
102IndexRange currentRange = _indexRanges[_nCurrentIndexRange]; 106StrongBox<long>? sharedCurrentIndexOffset = _indexRanges[_nCurrentIndexRange]._nSharedCurrentIndexOffset; 109Interlocked.CompareExchange(ref _indexRanges[_nCurrentIndexRange]._nSharedCurrentIndexOffset, new StrongBox<long>(0), null); 110sharedCurrentIndexOffset = _indexRanges[_nCurrentIndexRange]._nSharedCurrentIndexOffset!; 160Interlocked.Exchange(ref _indexRanges[_nCurrentIndexRange]._bRangeFinished, true); 165_nCurrentIndexRange = (_nCurrentIndexRange + 1) % _indexRanges.Length;