8 writes to _continuation
System.Threading.Channels (8)
System\Threading\Channels\AsyncOperation.cs (8)
108
_continuation
= pooled ? s_availableSentinel : null;
207
if (_continuation is not null || Interlocked.CompareExchange(ref
_continuation
, s_completedSentinel, null) is not null)
273
_continuation
= s_completedSentinel;
282
thisRef.
_continuation
= s_completedSentinel;
351
Action<object?>? prevContinuation = Interlocked.CompareExchange(ref
_continuation
, continuation, null);
463
Volatile.Write(ref
_continuation
, s_availableSentinel); // only after fetching all needed data
508
Volatile.Write(ref
_continuation
, s_availableSentinel); // only after fetching all needed data
520
if (ReferenceEquals(Interlocked.CompareExchange(ref
_continuation
, null, s_availableSentinel), s_availableSentinel))
7 references to _continuation
System.Threading.Channels (7)
System\Threading\Channels\AsyncOperation.cs (7)
76
/// <summary>State object to be passed to <see cref="
_continuation
"/>.</summary>
142
internal bool IsCompleted => ReferenceEquals(
_continuation
, s_completedSentinel);
207
if (
_continuation
is not null || Interlocked.CompareExchange(ref _continuation, s_completedSentinel, null) is not null)
209
Debug.Assert(
_continuation
!= s_completedSentinel, $"The continuation was the completion sentinel.");
210
Debug.Assert(
_continuation
!= s_availableSentinel, $"The continuation was the available sentinel.");
272
Action<object?> c =
_continuation
!;
281
Action<object?> c = thisRef.
_continuation
!;