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)
164
if (
_partitionIndex
== 0)
208
return _sharedValues[
_partitionIndex
];
294
_sharedValues[
_partitionIndex
] = sortedValues;
299
_sharedIndices[
_partitionIndex
] = indices;
300
_sharedKeys[
_partitionIndex
] = keys;
301
_sharedValues[
_partitionIndex
] = new TInputOutput[values.Count];
304
values.CopyTo(_sharedValues[
_partitionIndex
]);
374
int[]? myIndices = _sharedIndices[
_partitionIndex
];
375
GrowingArray<TKey> myKeys = _sharedKeys[
_partitionIndex
];
378
TInputOutput[] myValues = _sharedValues[
_partitionIndex
];
384
_sharedBarriers[phase][Math.Min(
_partitionIndex
, partnerIndex)].SignalAndWait(cancelToken);
389
if (
_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);
492
int[]? leftIndices = _sharedIndices[
_partitionIndex
];
493
TKey[] leftKeys = _sharedKeys[
_partitionIndex
].InternalArray;
494
TInputOutput[] leftValues = _sharedValues[
_partitionIndex
];
574
return
_partitionIndex
+ ((
_partitionIndex
% (offset * 2)) == 0 ? offset : -offset);