1 write to _partitionIndex
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\Sorting.cs (1)
77_partitionIndex = partitionIndex;
22 references to _partitionIndex
System.Linq.Parallel (22)
System\Linq\Parallel\Utils\Sorting.cs (22)
164if (_partitionIndex == 0) 208return _sharedValues[_partitionIndex]; 294_sharedValues[_partitionIndex] = sortedValues; 299_sharedIndices[_partitionIndex] = indices; 300_sharedKeys[_partitionIndex] = keys; 301_sharedValues[_partitionIndex] = new TInputOutput[values.Count]; 304values.CopyTo(_sharedValues[_partitionIndex]); 374int[]? myIndices = _sharedIndices[_partitionIndex]; 375GrowingArray<TKey> myKeys = _sharedKeys[_partitionIndex]; 378TInputOutput[] myValues = _sharedValues[_partitionIndex]; 384_sharedBarriers[phase][Math.Min(_partitionIndex, partnerIndex)].SignalAndWait(cancelToken); 389if (_partitionIndex < partnerIndex) 421_sharedIndices[_partitionIndex] = mergedIndices; 422_sharedKeys[_partitionIndex] = myKeys; 423_sharedValues[_partitionIndex] = mergedValues; 427_sharedBarriers[phase][_partitionIndex].SignalAndWait(cancelToken); 481_sharedBarriers[phase][_partitionIndex].SignalAndWait(cancelToken); 492int[]? leftIndices = _sharedIndices[_partitionIndex]; 493TKey[] leftKeys = _sharedKeys[_partitionIndex].InternalArray; 494TInputOutput[] leftValues = _sharedValues[_partitionIndex]; 574return _partitionIndex + ((_partitionIndex % (offset * 2)) == 0 ? offset : -offset);