20 writes to CurrentCount
System.Threading.Tasks.Dataflow (20)
Blocks\BatchBlock.cs (4)
387
if (_boundingState != null) _boundingState.
CurrentCount
+= 1; // track this new item against our bound
1013
if (_boundingState != null) _boundingState.
CurrentCount
+= reserved.Count;
1062
if (_boundingState != null) _boundingState.
CurrentCount
+= consumedCount;
1127
_boundingState.
CurrentCount
-= numItemsRemoved;
Blocks\BroadcastBlock.cs (4)
197
if (_boundingState != null) _boundingState.
CurrentCount
+= 1; // track this new item against our bound
231
_boundingState.
CurrentCount
-= numItemsRemoved;
343
_boundingState.
CurrentCount
++;
362
lock (IncomingLock) _boundingState.
CurrentCount
--;
Blocks\BufferBlock.cs (4)
125
if (_boundingState != null) _boundingState.
CurrentCount
++;
232
_boundingState.
CurrentCount
-= numItemsRemoved;
346
_boundingState.
CurrentCount
++;
365
lock (IncomingLock) _boundingState.
CurrentCount
--;
Blocks\JoinBlock.cs (4)
712
if (hasTheHighestNumberOfMessagesAvailable) _sharedResources._boundingState.
CurrentCount
+= 1; // track this new item against our bound
849
if (_sharedResources._boundingState != null && HasTheHighestNumberOfMessagesAvailable) _sharedResources._boundingState.
CurrentCount
+= 1; // track this new item against our bound
1370
if (!_dataflowBlockOptions.Greedy && _boundingState != null) _boundingState.
CurrentCount
+= 1;
1422
_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)
492
_dataflowBlockOptions.BoundedCapacity - _boundingState.
CurrentCount
:
1125
Debug.Assert(_boundingState.
CurrentCount
- numItemsRemoved >= 0,
Blocks\BroadcastBlock.cs (1)
229
Debug.Assert(_boundingState.
CurrentCount
- numItemsRemoved >= 0,
Blocks\BufferBlock.cs (1)
230
Debug.Assert(_boundingState.
CurrentCount
- numItemsRemoved >= 0,
Blocks\JoinBlock.cs (1)
1420
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),