1 write to _boundingState
System.Threading.Tasks.Dataflow (1)
Blocks\JoinBlock.cs (1)
1057
if (dataflowBlockOptions.BoundedCapacity > 0)
_boundingState
= new BoundingState(dataflowBlockOptions.BoundedCapacity);
15 references to _boundingState
System.Threading.Tasks.Dataflow (15)
Blocks\JoinBlock.cs (15)
696
Debug.Assert(_sharedResources.
_boundingState
!= null, "This is only used in bounding mode");
710
bool boundingCapacityAvailable = _sharedResources.
_boundingState
.CountIsLessThanBound || !hasTheHighestNumberOfMessagesAvailable;
724
if (hasTheHighestNumberOfMessagesAvailable) _sharedResources.
_boundingState
.CurrentCount += 1; // track this new item against our bound
848
(_sharedResources.
_boundingState
== null
850
((_sharedResources.
_boundingState
.CountIsLessThanBound || !HasTheHighestNumberOfMessagesAvailable) &&
861
if (_sharedResources.
_boundingState
!= null && HasTheHighestNumberOfMessagesAvailable) _sharedResources.
_boundingState
.CurrentCount += 1; // track this new item against our bound
1118
if (
_boundingState
== null)
1131
bool boundingCapacityAvailable =
_boundingState
.CountIsLessThanBound;
1358
Debug.Assert(!_dataflowBlockOptions.Greedy ||
_boundingState
!= null, "This only makes sense in non-greedy or bounding mode");
1385
if (!_dataflowBlockOptions.Greedy &&
_boundingState
!= null)
_boundingState
.CurrentCount += 1;
1430
if (
_boundingState
!= null)
1435
Debug.Assert(
_boundingState
.CurrentCount - numItemsRemoved >= 0,
1437
_boundingState
.CurrentCount -= numItemsRemoved;