27 references to Shared
System.Core (27)
System\Linq\Parallel\Enumerables\RangeEnumerable.cs (1)
106m_currentCount = new Shared<int>(-1);
System\Linq\Parallel\Enumerables\RepeatEnumerable.cs (1)
110m_currentIndex = new Shared<int>(-1);
System\Linq\Parallel\Merging\OrderPreservingMergeHelper.cs (1)
51m_results = new Shared<TInputOutput[]>(null);
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (5)
177Shared<int> sharedCurrentIndex = new Shared<int>(0); 178Shared<int> sharedPartitionCount = new Shared<int>(partitionCount); 179Shared<bool> sharedExeceptionTracker = new Shared<bool>(false); 379m_currentIndex = new Shared<int>(m_startIndex); 557m_currentIndex = new Shared<int>(m_startIndex);
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
182m_outputLoopCount = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
171m_outputLoopCount = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
227m_outputLoopCount = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
48private readonly Shared<bool> m_topLevelDisposedFlag = new Shared<bool>(false); //a shared<bool> so that it can be referenced by others.
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
144return WithPerExecutionSettings(new CancellationTokenSource(), new Shared<bool>(false));
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
110Shared<bool> resultFoundFlag = new Shared<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
103Shared<bool> resultFoundFlag = new Shared<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (1)
67Shared<int> sharedEmptyCount = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
159m_outputLoopCount = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
87Shared<bool> resultFoundFlag = new Shared<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
55Shared<bool> dummyTopLevelDisposeFlag = new Shared<bool>(false);
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (1)
176m_outputLoopCount = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (1)
138m_bufferIndex = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (1)
66Shared<int> totalElementCount = new Shared<int>(0);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
237m_bufferIndex = new Shared<int>(-1);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (1)
340m_bufferIndex = new Shared<int>(-1);
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (1)
141m_outputLoopCount = new Shared<int>(0);
System\Linq\Parallel\Scheduling\CancellationState.cs (1)
56TopLevelDisposedFlag = new Shared<bool>(false); //it would always be initialised to false, so no harm doing it here and avoid #if around constructors.
System\Linq\ParallelEnumerable.cs (1)
4412.WithPerExecutionSettings(new CancellationTokenSource(), new System.Linq.Parallel.Shared<bool>(false));