4 writes to _consumerChunk
System.Linq.Parallel (4)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (4)
408
if (!TryDequeueChunk(ref
_consumerChunk
))
427
_consumerChunk
= null;
486
if (!TryDequeueChunk(ref
_consumerChunk
, ref isDone))
504
_consumerChunk
= null;
12 references to _consumerChunk
System.Linq.Parallel (12)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (12)
406
if (
_consumerChunk
== null)
410
Debug.Assert(
_consumerChunk
== null);
418
Debug.Assert(
_consumerChunk
!= null, "consumer chunk is null");
419
Debug.Assert(0 <= _consumerChunkIndex && _consumerChunkIndex <
_consumerChunk
.Length, "chunk index out of bounds");
420
item =
_consumerChunk
[_consumerChunkIndex];
425
if (_consumerChunkIndex ==
_consumerChunk
.Length)
484
if (
_consumerChunk
== null)
488
Debug.Assert(
_consumerChunk
== null);
496
Debug.Assert(
_consumerChunk
!= null, "consumer chunk is null");
497
Debug.Assert(0 <= _consumerChunkIndex && _consumerChunkIndex <
_consumerChunk
.Length, "chunk index out of bounds");
498
item =
_consumerChunk
[_consumerChunkIndex];
502
if (_consumerChunkIndex ==
_consumerChunk
.Length)