30 writes to Value
System.Linq.Parallel (30)
System\Linq\Parallel\Enumerables\RangeEnumerable.cs (1)
105_currentCount.Value = nextCount;
System\Linq\Parallel\Enumerables\RepeatEnumerable.cs (1)
108++_currentIndex.Value;
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (5)
369int current = ++_currentIndex.Value; 540int current = ++_currentIndex.Value; 661_exceptionTracker.Value = true; 678_currentIndex.Value += i; 703if (Interlocked.Decrement(ref _activeEnumeratorsCount.Value) == 0)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
202if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
189if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
264if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
72_topLevelDisposedFlag.Value = true;
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
219_resultFoundFlag.Value = true;
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
196_resultFoundFlag.Value = true;
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (1)
190Interlocked.Increment(ref _sharedEmptyCount.Value);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
157if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
215_resultFoundFlag.Value = true;
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (1)
174if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (2)
144_bufferIndex.Value++; 150if (--_bufferIndex.Value >= 0)
System\Linq\Parallel\QueryOperators\Unary\SingleQueryOperator.cs (2)
157Interlocked.Increment(ref _totalElementCount.Value); 176if (Volatile.Read(ref _totalElementCount.Value) > 1)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (3)
252++_bufferIndex.Value; 281for (_bufferIndex.Value++; _bufferIndex.Value < _buffer.Count; _bufferIndex.Value++)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (3)
355++_bufferIndex.Value; 374for (_bufferIndex.Value++; _bufferIndex.Value < _buffer.Count; _bufferIndex.Value++)
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (1)
139if ((_outputLoopCount.Value++ & CancellationState.POLL_INTERVAL) == 0)
System\Linq\Parallel\Scheduling\OrderPreservingSpoolingTask.cs (1)
144_results.Value = sortedOutput;
System\Linq\Parallel\Utils\Shared.cs (1)
22this.Value = value;
38 references to Value
System.Linq.Parallel (38)
System\Linq\Parallel\Enumerables\RangeEnumerable.cs (1)
102int nextCount = _currentCount.Value + 1;
System\Linq\Parallel\Enumerables\RepeatEnumerable.cs (2)
106if (_currentIndex.Value < (_count - 1)) 110currentKey = _currentIndex.Value + _indexOffset;
System\Linq\Parallel\Merging\MergeEnumerator.cs (1)
68Debug.Assert(_taskGroupState.CancellationState.TopLevelDisposedFlag.Value);
System\Linq\Parallel\Merging\OrderPreservingMergeHelper.cs (3)
69Debug.Assert(_results.Value != null); 70return ((IEnumerable<TInputOutput>)_results.Value).GetEnumerator(); 80return _results.Value;
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (2)
646if (_exceptionTracker.Value) 675mutables._chunkBaseIndex = _currentIndex.Value;
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
90if (_topLevelDisposedFlag.Value)
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (2)
189if (_resultFoundFlag.Value) 209if (_resultFoundFlag.Value)
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (2)
167if (_resultFoundFlag.Value) 186if (_resultFoundFlag.Value)
System\Linq\Parallel\QueryOperators\Unary\DefaultIfEmptyQueryOperator.cs (1)
174if (_sharedEmptyCount.Value == _partitionCount - 1)
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
206if (_resultFoundFlag.Value)
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (2)
152currentElement = _buffer[_bufferIndex.Value].First; 153currentKey = _buffer[_bufferIndex.Value].Second;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (9)
246if (_count == 0 || _bufferIndex.Value >= _buffer.Count - 1) 253currentElement = _buffer[_bufferIndex.Value].First; 254currentKey = _buffer[_bufferIndex.Value].Second; 258|| _keyComparer.Compare(_buffer[_bufferIndex.Value].Second, _sharedIndices.MaxValue) <= 0; 279if (_bufferIndex.Value < _buffer.Count - 1) 281for (_bufferIndex.Value++; _bufferIndex.Value < _buffer.Count; _bufferIndex.Value++) 285if (_keyComparer.Compare(_buffer[_bufferIndex.Value].Second, minKey) > 0) 287currentElement = _buffer[_bufferIndex.Value].First; 288currentKey = _buffer[_bufferIndex.Value].Second;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (8)
349if (_bufferIndex.Value >= _buffer.Count - 1) 356currentElement = _buffer[_bufferIndex.Value].First; 357currentKey = _buffer[_bufferIndex.Value].Second; 372if (_bufferIndex.Value < _buffer.Count - 1) 374for (_bufferIndex.Value++; _bufferIndex.Value < _buffer.Count; _bufferIndex.Value++) 378if (_keyComparer.Compare(_buffer[_bufferIndex.Value].Second, _operatorState._currentLowKey) >= 0) 380currentElement = _buffer[_bufferIndex.Value].First; 381currentKey = _buffer[_bufferIndex.Value].Second;
System\Linq\Parallel\Scheduling\OrderPreservingSpoolingTask.cs (1)
77Debug.Assert(results.Value == null);
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (2)
151if (!_cancellationState.TopLevelDisposedFlag.Value) 158Debug.Assert(_cancellationState.TopLevelDisposedFlag.Value);