1 write to _bufferIndex
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (1)
339_bufferIndex = new Shared<int>(-1);
12 references to _bufferIndex
System.Linq.Parallel (12)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (12)
342Debug.Assert(_bufferIndex != null); 349if (_bufferIndex.Value >= _buffer.Count - 1) 355++_bufferIndex.Value; 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;