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)
342
Debug.Assert(
_bufferIndex
!= null);
349
if (
_bufferIndex
.Value >= _buffer.Count - 1)
355
++
_bufferIndex
.Value;
356
currentElement = _buffer[
_bufferIndex
.Value].First;
357
currentKey = _buffer[
_bufferIndex
.Value].Second;
372
if (
_bufferIndex
.Value < _buffer.Count - 1)
374
for (
_bufferIndex
.Value++;
_bufferIndex
.Value < _buffer.Count;
_bufferIndex
.Value++)
378
if (_keyComparer.Compare(_buffer[
_bufferIndex
.Value].Second, _operatorState._currentLowKey) >= 0)
380
currentElement = _buffer[
_bufferIndex
.Value].First;
381
currentKey = _buffer[
_bufferIndex
.Value].Second;