3 writes to _numberOfOutstandingServiceTasks
System.Threading.Tasks.Dataflow (3)
Internal\TargetCore.cs (3)
171
if (UsesAsyncCompletion)
_numberOfOutstandingServiceTasks
--;
370
if (UsesAsyncCompletion)
_numberOfOutstandingServiceTasks
++;
503
_numberOfOutstandingServiceTasks
--;
9 references to _numberOfOutstandingServiceTasks
System.Threading.Tasks.Dataflow (9)
Internal\TargetCore.cs (9)
168
Debug.Assert(_numberOfOutstandingOperations > 0 && (!UsesAsyncCompletion ||
_numberOfOutstandingServiceTasks
> 0),
296
Debug.Assert(
_numberOfOutstandingServiceTasks
>= 0, "Number of outstanding service tasks should never be negative.");
297
Debug.Assert(_numberOfOutstandingOperations >=
_numberOfOutstandingServiceTasks
, "Number of outstanding service tasks should never exceed the number of outstanding operations.");
302
return (_numberOfOutstandingOperations -
_numberOfOutstandingServiceTasks
) < _dataflowBlockOptions.ActualMaxDegreeOfParallelism;
312
Debug.Assert(
_numberOfOutstandingServiceTasks
>= 0, "Number of outstanding service tasks should never be negative.");
313
Debug.Assert(_numberOfOutstandingOperations >=
_numberOfOutstandingServiceTasks
, "Number of outstanding service tasks should never exceed the number of outstanding operations.");
331
_numberOfOutstandingServiceTasks
< _dataflowBlockOptions.ActualMaxDegreeOfParallelism;
502
Debug.Assert(
_numberOfOutstandingServiceTasks
> 0, "Expected a positive number of outstanding service tasks, since we're completing one here.");
865
internal int CurrentDegreeOfParallelism { get { return _target._numberOfOutstandingOperations - _target.
_numberOfOutstandingServiceTasks
; } }