20 writes to CurrentCount
System.Threading.Tasks.Dataflow (20)
Blocks\BatchBlock.cs (4)
390
if (_boundingState != null) _boundingState.
CurrentCount
+= 1; // track this new item against our bound
1016
if (_boundingState != null) _boundingState.
CurrentCount
+= reserved.Count;
1065
if (_boundingState != null) _boundingState.
CurrentCount
+= consumedCount;
1130
_boundingState.
CurrentCount
-= numItemsRemoved;
Blocks\BroadcastBlock.cs (4)
203
if (_boundingState != null) _boundingState.
CurrentCount
+= 1; // track this new item against our bound
237
_boundingState.
CurrentCount
-= numItemsRemoved;
349
_boundingState.
CurrentCount
++;
368
lock (IncomingLock) _boundingState.
CurrentCount
--;
Blocks\BufferBlock.cs (4)
128
if (_boundingState != null) _boundingState.
CurrentCount
++;
238
_boundingState.
CurrentCount
-= numItemsRemoved;
352
_boundingState.
CurrentCount
++;
371
lock (IncomingLock) _boundingState.
CurrentCount
--;
Blocks\JoinBlock.cs (4)
724
if (hasTheHighestNumberOfMessagesAvailable) _sharedResources._boundingState.
CurrentCount
+= 1; // track this new item against our bound
861
if (_sharedResources._boundingState != null && HasTheHighestNumberOfMessagesAvailable) _sharedResources._boundingState.
CurrentCount
+= 1; // track this new item against our bound
1385
if (!_dataflowBlockOptions.Greedy && _boundingState != null) _boundingState.
CurrentCount
+= 1;
1437
_boundingState.
CurrentCount
-= numItemsRemoved;
Internal\TargetCore.cs (4)
219
if (_boundingState != null) _boundingState.
CurrentCount
+= 1; // track this new item against our bound
267
_boundingState.
CurrentCount
+= boundingCountChange;
661
_boundingState.
CurrentCount
+= 1; // optimistically take bounding space
819
_boundingState.
CurrentCount
+= count;
8 references to CurrentCount
System.Threading.Tasks.Dataflow (8)
Blocks\BatchBlock.cs (2)
495
_dataflowBlockOptions.BoundedCapacity - _boundingState.
CurrentCount
:
1128
Debug.Assert(_boundingState.
CurrentCount
- numItemsRemoved >= 0,
Blocks\BroadcastBlock.cs (1)
235
Debug.Assert(_boundingState.
CurrentCount
- numItemsRemoved >= 0,
Blocks\BufferBlock.cs (1)
236
Debug.Assert(_boundingState.
CurrentCount
- numItemsRemoved >= 0,
Blocks\JoinBlock.cs (1)
1435
Debug.Assert(_boundingState.
CurrentCount
- numItemsRemoved >= 0,
Internal\Common.cs (1)
633
internal bool CountIsLessThanBound { get { return
CurrentCount
< BoundedCapacity; } }
Internal\TargetCore.cs (2)
265
Debug.Assert(boundingCountChange <= 0 && _boundingState.
CurrentCount
+ boundingCountChange >= 0,
817
Debug.Assert(count > 0 || (count < 0 && _boundingState.
CurrentCount
+ count >= 0),