2 writes to _producerChunkIndex
System.Linq.Parallel (2)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (2)
133
_producerChunkIndex
= 0;
271
_producerChunkIndex
= (producerChunkIndex + 1) % _chunkSize;
6 references to _producerChunkIndex
System.Linq.Parallel (6)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (6)
261
int producerChunkIndex =
_producerChunkIndex
;
380
if (_producerChunk != null &&
_producerChunkIndex
!= 0)
383
Debug.Assert(1 <=
_producerChunkIndex
&&
_producerChunkIndex
<= _chunkSize);
384
T[] leftOverChunk = new T[
_producerChunkIndex
];
385
Array.Copy(_producerChunk, leftOverChunk,
_producerChunkIndex
);