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)
102
IndexRange currentRange = _indexRanges[
_nCurrentIndexRange
];
106
StrongBox<long>? sharedCurrentIndexOffset = _indexRanges[
_nCurrentIndexRange
]._nSharedCurrentIndexOffset;
109
Interlocked.CompareExchange(ref _indexRanges[
_nCurrentIndexRange
]._nSharedCurrentIndexOffset, new StrongBox<long>(0), null);
110
sharedCurrentIndexOffset = _indexRanges[
_nCurrentIndexRange
]._nSharedCurrentIndexOffset!;
160
Interlocked.Exchange(ref _indexRanges[
_nCurrentIndexRange
]._bRangeFinished, true);
165
_nCurrentIndexRange = (
_nCurrentIndexRange
+ 1) % _indexRanges.Length;