1 write to _bufferIndex
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (1)
236
_bufferIndex
= new Shared<int>(-1);
14 references to _bufferIndex
System.Linq.Parallel (14)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (14)
243
Debug.Assert(_buffer != null &&
_bufferIndex
!= null);
246
if (_count == 0 ||
_bufferIndex
.Value >= _buffer.Count - 1)
252
++
_bufferIndex
.Value;
253
currentElement = _buffer[
_bufferIndex
.Value].First;
254
currentKey = _buffer[
_bufferIndex
.Value].Second;
258
|| _keyComparer.Compare(_buffer[
_bufferIndex
.Value].Second, _sharedIndices.MaxValue) <= 0;
275
Debug.Assert(_buffer != null &&
_bufferIndex
!= null);
279
if (
_bufferIndex
.Value < _buffer.Count - 1)
281
for (
_bufferIndex
.Value++;
_bufferIndex
.Value < _buffer.Count;
_bufferIndex
.Value++)
285
if (_keyComparer.Compare(_buffer[
_bufferIndex
.Value].Second, minKey) > 0)
287
currentElement = _buffer[
_bufferIndex
.Value].First;
288
currentKey = _buffer[
_bufferIndex
.Value].Second;