2 writes to ExecutionMode
System.Linq.Parallel (2)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
178
settings.
ExecutionMode
??= ParallelExecutionMode.Default;
System\Linq\ParallelEnumerable.cs (1)
359
settings.
ExecutionMode
= executionMode;
25 references to ExecutionMode
System.Linq.Parallel (25)
System\Linq\Parallel\QueryOperators\BinaryQueryOperator.cs (2)
106
Debug.Assert(_settings.
ExecutionMode
!= null);
108
if (_settings.
ExecutionMode
.Value == ParallelExecutionMode.Default && _op.LimitsParallelism)
System\Linq\Parallel\QueryOperators\QueryOperator.cs (5)
127
Debug.Assert(querySettings.
ExecutionMode
!= null);
129
if (querySettings.
ExecutionMode
.Value == ParallelExecutionMode.Default && LimitsParallelism)
180
Debug.Assert(querySettings.
ExecutionMode
.HasValue);
200
Debug.Assert(querySettings.
ExecutionMode
!= null);
201
if (querySettings.
ExecutionMode
.Value == ParallelExecutionMode.Default && LimitsParallelism)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (7)
116
if (this.
ExecutionMode
!= null && settings2.
ExecutionMode
!= null)
129
ParallelExecutionMode? executionMode = this.
ExecutionMode
.HasValue ? this.
ExecutionMode
: settings2.
ExecutionMode
;
147
QuerySettings settings = new QuerySettings(TaskScheduler, DegreeOfParallelism, CancellationState.ExternalCancellationToken,
ExecutionMode
, MergeOptions);
188
Debug.Assert(settings.
ExecutionMode
!= null);
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
129
if (LimitsParallelism && SpecifiedQuerySettings.WithDefaults().
ExecutionMode
!.Value != ParallelExecutionMode.ForceParallelism)
System\Linq\Parallel\QueryOperators\UnaryQueryOperator.cs (2)
112
Debug.Assert(_settings.
ExecutionMode
!= null && _settings.DegreeOfParallelism != null);
113
if (_settings.
ExecutionMode
.Value == ParallelExecutionMode.Default && _op.LimitsParallelism)
System\Linq\ParallelEnumerable.cs (8)
5406
if (queryOp.LimitsParallelism && settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)
5448
if (queryOp.LimitsParallelism && settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)
5489
&& settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)
5534
&& settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)
5583
&& settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)
5625
&& settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)
5667
&& settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)
5708
&& settings.
ExecutionMode
!= ParallelExecutionMode.ForceParallelism)