5 references to CANCELLATION_STATE_COMPLETING
System.Threading.Tasks.Dataflow (5)
Base\DataflowBlock.cs (5)
574
Interlocked.CompareExchange(ref source._cancellationState,
CANCELLATION_STATE_COMPLETING
, CANCELLATION_STATE_REGISTERED) == CANCELLATION_STATE_REGISTERED)
608
Debug.Assert(_cancellationState ==
CANCELLATION_STATE_COMPLETING
,
665
curState == CANCELLATION_STATE_RESERVED || curState ==
CANCELLATION_STATE_COMPLETING
,
672
(curState !=
CANCELLATION_STATE_COMPLETING
&& // fast check to avoid unnecessary synchronization
673
Interlocked.CompareExchange(ref _cancellationState,
CANCELLATION_STATE_COMPLETING
, curState) == curState))