27 references to Shared
System.Linq.Parallel (27)
System\Linq\Parallel\Enumerables\RangeEnumerable.cs (1)
99
_currentCount ??= new
Shared
<int>(-1);
System\Linq\Parallel\Enumerables\RepeatEnumerable.cs (1)
104
_currentIndex ??= new
Shared
<int>(-1);
System\Linq\Parallel\Merging\OrderPreservingMergeHelper.cs (1)
47
_results = new
Shared
<TInputOutput[]?>(null);
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (5)
170
Shared<int> sharedCurrentIndex = new
Shared
<int>(0);
171
Shared<int> sharedPartitionCount = new
Shared
<int>(partitionCount);
172
Shared<bool> sharedExceptionTracker = new
Shared
<bool>(false);
366
_currentIndex ??= new
Shared
<int>(_startIndex);
537
_currentIndex ??= new
Shared
<int>(_startIndex);
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
178
_outputLoopCount = new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
166
_outputLoopCount = new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
220
_outputLoopCount = new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
41
private readonly Shared<bool> _topLevelDisposedFlag = new
Shared
<bool>(false); //a shared<bool> so that it can be referenced by others.
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
137
return WithPerExecutionSettings(new CancellationTokenSource(), new
Shared
<bool>(false));
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
106
Shared<bool> resultFoundFlag = new
Shared
<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
90
Shared<bool> resultFoundFlag = new
Shared
<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (1)
65
Shared<int> sharedEmptyCount = new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
153
_outputLoopCount ??= new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
83
Shared<bool> resultFoundFlag = new
Shared
<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
51
Shared<bool> dummyTopLevelDisposeFlag = new
Shared
<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (1)
170
_outputLoopCount ??= new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
132
_bufferIndex = new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
62
Shared<int> totalElementCount = new
Shared
<int>(0);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
236
_bufferIndex = new
Shared
<int>(-1);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (1)
339
_bufferIndex = new
Shared
<int>(-1);
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (1)
135
_outputLoopCount ??= new
Shared
<int>(0);
System\Linq\Parallel\Scheduling\CancellationState.cs (1)
49
TopLevelDisposedFlag = new
Shared
<bool>(false); //it would always be initialized to false, so no harm doing it here and avoid #if around constructors.
System\Linq\ParallelEnumerable.cs (1)
4386
.WithPerExecutionSettings(new CancellationTokenSource(), new System.Linq.Parallel.
Shared
<bool>(false));