2 writes to DegreeOfParallelism
System.Linq.Parallel (2)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
177
settings.
DegreeOfParallelism
??= Scheduling.GetDefaultDegreeOfParallelism();
System\Linq\ParallelEnumerable.cs (1)
301
settings.
DegreeOfParallelism
= degreeOfParallelism;
25 references to DegreeOfParallelism
System.Linq.Parallel (25)
System\Linq\Parallel\QueryOperators\Binary\ZipQueryOperator.cs (2)
88
Debug.Assert(settings.
DegreeOfParallelism
!= null);
89
int partitionCount = settings.
DegreeOfParallelism
.Value;
System\Linq\Parallel\QueryOperators\BinaryQueryOperator.cs (4)
110
Debug.Assert(_settings.
DegreeOfParallelism
!= null);
114
opSequential, _settings.
DegreeOfParallelism
.Value, _preferStriping);
119
Debug.Assert(_settings.
DegreeOfParallelism
!= null);
121
PartitionedStream<TOutput, int> result = ExchangeUtilities.PartitionDataSource(this, _settings.
DegreeOfParallelism
.Value, _preferStriping);
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (2)
130
Debug.Assert(_settings.
DegreeOfParallelism
.HasValue);
131
int partitionCount = _settings.
DegreeOfParallelism
.Value;
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
179
Debug.Assert(querySettings.
DegreeOfParallelism
.HasValue);
System\Linq\Parallel\QueryOperators\QuerySettings.cs (9)
106
if (this.
DegreeOfParallelism
!= null && settings2.
DegreeOfParallelism
!= null)
127
int? dop = this.
DegreeOfParallelism
.HasValue ? this.
DegreeOfParallelism
: settings2.
DegreeOfParallelism
;
147
QuerySettings settings = new QuerySettings(TaskScheduler,
DegreeOfParallelism
, CancellationState.ExternalCancellationToken, ExecutionMode, MergeOptions);
186
Debug.Assert(settings.
DegreeOfParallelism
.HasValue);
187
Debug.Assert(settings.
DegreeOfParallelism
.Value >= 1 && settings.
DegreeOfParallelism
<= Scheduling.MAX_SUPPORTED_DOP);
System\Linq\Parallel\QueryOperators\ScanQueryOperator.cs (4)
59
Debug.Assert(settings.
DegreeOfParallelism
.HasValue);
63
return new ListQueryResults<TElement>(dataAsList, settings.
DegreeOfParallelism
.GetValueOrDefault(), preferStriping);
131
Debug.Assert(_settings.
DegreeOfParallelism
!= null);
134
_data, _settings.
DegreeOfParallelism
.Value, false);
System\Linq\Parallel\QueryOperators\UnaryQueryOperator.cs (3)
112
Debug.Assert(_settings.ExecutionMode != null && _settings.
DegreeOfParallelism
!= null);
118
opSequential, _settings.
DegreeOfParallelism
.Value, _preferStriping);
124
PartitionedStream<TOutput, int> result = ExchangeUtilities.PartitionDataSource(this, _settings.
DegreeOfParallelism
.Value, _preferStriping);