5 writes to _numberOfOutstandingOperations
System.Threading.Tasks.Dataflow (5)
Internal\TargetCore.cs (5)
170
_numberOfOutstandingOperations
--;
260
if (_numberOfOutstandingOperations > 0)
_numberOfOutstandingOperations
--;
369
_numberOfOutstandingOperations
++;
496
_numberOfOutstandingOperations
--;
533
if (parallelismAvailable) ++
_numberOfOutstandingOperations
;
12 references to _numberOfOutstandingOperations
System.Threading.Tasks.Dataflow (12)
Internal\TargetCore.cs (12)
153
Debug.Assert(
_numberOfOutstandingOperations
> 0 || !storeExceptionEvenIfAlreadyCompleting,
168
Debug.Assert(
_numberOfOutstandingOperations
> 0 && (!UsesAsyncCompletion || _numberOfOutstandingServiceTasks > 0),
259
Debug.Assert(
_numberOfOutstandingOperations
> 0, "Operations may only be completed if any are outstanding.");
260
if (
_numberOfOutstandingOperations
> 0) _numberOfOutstandingOperations--;
295
Debug.Assert(
_numberOfOutstandingOperations
>= 0, "Number of outstanding operations 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;
311
Debug.Assert(
_numberOfOutstandingOperations
>= 0, "Number of outstanding operations should never be negative.");
313
Debug.Assert(
_numberOfOutstandingOperations
>= _numberOfOutstandingServiceTasks, "Number of outstanding service tasks should never exceed the number of outstanding operations.");
495
Debug.Assert(
_numberOfOutstandingOperations
> 0, "Expected a positive number of outstanding operations, since we're completing one here.");
733
bool notCurrentlyProcessing =
_numberOfOutstandingOperations
== 0;
865
internal int CurrentDegreeOfParallelism { get { return _target.
_numberOfOutstandingOperations
- _target._numberOfOutstandingServiceTasks; } }