1 write to _boundingState
System.Threading.Tasks.Dataflow (1)
Blocks\BatchBlock.cs (1)
323
if (boundingEnabled)
_boundingState
= new BoundingState(dataflowBlockOptions.BoundedCapacity);
15 references to _boundingState
System.Threading.Tasks.Dataflow (15)
Blocks\BatchBlock.cs (15)
374
(
_boundingState
== null
376
(
_boundingState
.CountIsLessThanBound && _nonGreedyState!.PostponedMessages.Count == 0 && _nonGreedyState.TaskForInputProcessing == null)))
390
if (
_boundingState
!= null)
_boundingState
.CurrentCount += 1; // track this new item against our bound
494
return
_boundingState
!= null ?
495
_dataflowBlockOptions.BoundedCapacity -
_boundingState
.CurrentCount :
874
Debug.Assert(
_boundingState
!= null, "Bounding state is required when in bounded mode.");
1016
if (
_boundingState
!= null)
_boundingState
.CurrentCount += reserved.Count;
1034
Debug.Assert(
_boundingState
!= null, "Bounded state is required for bounded mode.");
1065
if (
_boundingState
!= null)
_boundingState
.CurrentCount += consumedCount;
1123
if (
_boundingState
!= null)
1128
Debug.Assert(
_boundingState
.CurrentCount - numItemsRemoved >= 0,
1130
_boundingState
.CurrentCount -= numItemsRemoved;