2 instantiations of CancellationState
System.Linq.Parallel (2)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
88
_cancellationState = new
CancellationState
(externalCancellationToken);
System\Linq\ParallelEnumerable.cs (1)
326
settings.CancellationState = new
CancellationState
(cancellationToken);
106 references to CancellationState
System.Linq.Parallel (106)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
46
TaskScheduler taskScheduler,
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\Merging\MergeExecutor.cs (1)
51
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\Merging\OrderPreservingMergeHelper.cs (1)
39
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (1)
117
CancellationState
cancellationState,
System\Linq\Parallel\Partitioning\HashRepartitionEnumerator.cs (1)
211
if ((loopCount++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\Partitioning\OrderedHashRepartitionEnumerator.cs (1)
218
if ((loopCount++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (1)
301
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (4)
188
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
202
if ((_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
277
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
291
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Binary\HashJoinQueryOperatorEnumerator.cs (2)
122
if ((mutables._outputLoopCount++ &
CancellationState
.POLL_INTERVAL) == 0)
253
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (4)
175
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
189
if ((_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
276
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
300
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (4)
236
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
264
if ((_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
350
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
367
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\CountAggregationOperator.cs (1)
111
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (1)
120
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\DecimalMinMaxAggregationOperator.cs (2)
139
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
153
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\DecimalSumAggregationOperator.cs (1)
105
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (1)
121
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\DoubleMinMaxAggregationOperator.cs (2)
146
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
160
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\DoubleSumAggregationOperator.cs (1)
105
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (1)
121
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\FloatMinMaxAggregationOperator.cs (2)
144
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
157
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\FloatSumAggregationOperator.cs (1)
106
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (1)
120
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\IntMinMaxAggregationOperator.cs (2)
139
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
153
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\IntSumAggregationOperator.cs (1)
109
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (1)
120
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\LongCountAggregationOperator.cs (1)
109
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\LongMinMaxAggregationOperator.cs (2)
140
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
154
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\LongSumAggregationOperator.cs (1)
108
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
116
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalMinMaxAggregationOperator.cs (2)
138
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
152
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalSumAggregationOperator.cs (1)
105
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
118
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleMinMaxAggregationOperator.cs (2)
146
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
161
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleSumAggregationOperator.cs (1)
105
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
117
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatMinMaxAggregationOperator.cs (2)
146
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
161
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatSumAggregationOperator.cs (1)
105
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
117
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntMinMaxAggregationOperator.cs (2)
138
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
152
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntSumAggregationOperator.cs (1)
108
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
118
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongMinMaxAggregationOperator.cs (2)
139
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
153
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongSumAggregationOperator.cs (1)
109
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\PartitionedStreamMerger.cs (2)
27
private readonly
CancellationState
_cancellationState;
45
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (3)
122
if ((_moveNextIteration &
CancellationState
.POLL_INTERVAL) == 0)
124
CancellationState
.ThrowWithStandardMessageIfCanceled(
158
CancellationState
.ThrowWithStandardMessageIfCanceled(_querySettings.CancellationState.ExternalCancellationToken);
System\Linq\Parallel\QueryOperators\QuerySettings.cs (2)
29
private
CancellationState
_cancellationState;
34
internal
CancellationState
CancellationState
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
206
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
183
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (2)
157
if ((_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
237
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (2)
131
CancellationState
cancelState = SpecifiedQuerySettings.CancellationState;
203
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (1)
180
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
163
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (4)
330
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
392
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
559
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
634
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (1)
174
if ((_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (1)
177
if ((loopCount &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
140
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (2)
283
if ((_mutables._lhsCount++ &
CancellationState
.POLL_INTERVAL) == 0)
412
if ((_mutables._lhsCount++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
210
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (1)
273
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (1)
139
if ((_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (4)
26
private readonly
CancellationState
_cancellationState; // The cancellation state.
34
internal QueryTaskGroupState(
CancellationState
cancellationState, int queryId)
53
internal
CancellationState
CancellationState
153
CancellationState
.ThrowWithStandardMessageIfCanceled(_cancellationState.ExternalCancellationToken); // Case #2
System\Linq\Parallel\Utils\CancellableEnumerable.cs (1)
31
if ((count++ &
CancellationState
.POLL_INTERVAL) == 0)
System\Linq\Parallel\Utils\ExceptionAggregator.cs (6)
28
internal static IEnumerable<TElement> WrapEnumerable<TElement>(IEnumerable<TElement> source,
CancellationState
cancellationState)
59
CancellationState
cancellationState)
98
internal static void ThrowOCEorAggregateException(Exception ex,
CancellationState
cancellationState)
102
CancellationState
.ThrowWithStandardMessageIfCanceled(
120
internal static Func<T, U> WrapFunc<T, U>(Func<T, U> f,
CancellationState
cancellationState)
139
private static bool ThrowAnOCE(Exception ex,
CancellationState
cancellationState)
System\Linq\Parallel\Utils\Sorting.cs (4)
239
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
438
if ((i &
CancellationState
.POLL_INTERVAL) == 0)
515
if ((i &
CancellationState
.POLL_INTERVAL) == 0)
593
if (right - left >
CancellationState
.POLL_INTERVAL)
System\Linq\ParallelEnumerable.cs (1)
4423
private static void DisposeEnumerator<TSource>(IEnumerator<TSource> e,
CancellationState
cancelState)