2 types derived from Continuation
System.Private.CoreLib (2)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.ValueTaskSourceContinuation.cs (1)
13
private sealed unsafe class ValueTaskSourceContinuation :
Continuation
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeAsyncTaskContinuation.cs (1)
10
internal sealed unsafe class RuntimeAsyncTaskContinuation :
Continuation
, IThreadPoolWorkItem
13 instantiations of Continuation
System.Private.CoreLib (13)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (9)
371
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
407
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
454
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
504
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
542
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
592
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
635
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
666
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
1572
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (4)
33
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
46
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
77
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
103
Continuation? sentinelContinuation = state.SentinelContinuation ??= new
Continuation
();
222 references to Continuation
System.Private.CoreLib (222)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (62)
58
public delegate*<
Continuation
, ref byte,
Continuation
?> Resume;
77
public
Continuation
? Next;
162
public
Continuation
? NextContinuation;
197
private static void AsyncSuspend(
Continuation
continuation) => throw new UnreachableException();
205
private static
Continuation
? AsyncCallContinuation() => throw new UnreachableException();
226
public delegate*<
Continuation
, int, Action, void> AwaiterContinuation;
241
public
Continuation
? SentinelContinuation;
330
private static unsafe
Continuation
AllocContinuation(
Continuation
prevContinuation, MethodTable* contMT)
333
Continuation
newContinuation = (
Continuation
)RuntimeImports.RhNewObject(contMT);
371
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
407
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
454
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
456
Continuation
nextCont;
504
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
542
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
544
Continuation
nextCont;
592
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
635
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
666
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
772
private
Continuation
MoveContinuationState()
775
Debug.Assert(stateObject is
Continuation
);
777
return Unsafe.As<
Continuation
>(stateObject);
780
private void SetContinuationState(
Continuation
value)
804
Continuation
sentinelContinuation = state.SentinelContinuation!;
805
Continuation
headContinuation = sentinelContinuation.Next!;
859
Continuation
contWithContinueFlags = valueTaskSourceCont;
909
Continuation
? nextContinuation = state.SentinelContinuation!.Next;
967
Continuation
curContinuation = asyncDispatcherInfo.NextContinuation;
968
Continuation
? nextContinuation = curContinuation.Next;
979
Continuation
? newContinuation = curContinuation.ResumeInfo->Resume(curContinuation, ref resultLoc);
995
Continuation
? handlerContinuation = UnwindToPossibleHandler(asyncDispatcherInfo.NextContinuation, ex, ref unwindedFrames);
1086
Continuation
curContinuation = asyncDispatcherInfo.NextContinuation;
1089
Continuation
? nextContinuation = curContinuation.Next;
1103
Continuation
? newContinuation = RuntimeAsyncInstrumentationHelpers.ResumeContinuation(ref asyncDispatcherInfo, flags, curContinuation, ref resultLoc);
1123
Continuation
? handlerContinuation = UnwindToPossibleHandler(asyncDispatcherInfo.NextContinuation, ex, ref unwindedFrames);
1185
private static unsafe
Continuation
? UnwindToPossibleHandler(
Continuation
? continuation, Exception ex, ref uint unwindedFrames)
1206
private bool QueueContinuationFollowUpActionIfNecessary(
Continuation
continuation)
1280
Continuation
? nextContinuation = state.SentinelContinuation!.Next;
1572
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
1771
public static void SyncPointCheck(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags,
Continuation
curContinuation)
1803
public static void QueueSuspendedRuntimeAsyncContext(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags,
Continuation
nextContinuation)
1820
public static void AwaitSuspendedRuntimeAsyncContext(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags,
Continuation
curContinuation,
Continuation
newContinuation,
Continuation
? nextContinuation)
1853
public static void UnwindRuntimeAsyncMethodUnhandledException(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Exception ex,
Continuation
curContinuation, uint unwindedFrames)
1874
public static void UnwindRuntimeAsyncMethodHandledException(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags,
Continuation
curContinuation, uint unwindedFrames)
1896
public static void ResumeRuntimeAsyncMethod(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags,
Continuation
curContinuation)
1913
public static void CompleteRuntimeAsyncMethod(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags,
Continuation
curContinuation)
1932
public static
Continuation
? ResumeContinuation(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags,
Continuation
curContinuation, ref byte resultLoc)
1959
public static void SuspendAsyncContext(
Continuation
curContinuation,
Continuation
newContinuation)
1980
public static void AsyncMethodUnhandledException(Task? task, Exception ex,
Continuation
curContinuation)
1990
public static void AsyncMethodHandledException(
Continuation
curContinuation, uint unwindedFrames)
1995
public static void ResumeAsyncMethod(ref AsyncDispatcherInfo info,
Continuation
curContinuation)
2003
public static void CompleteAsyncMethod(
Continuation
curContinuation)
2008
public static void HandleSuspended(
Continuation
? nextContinuation)
2016
public static void HandleSuspendedFailed(Task task,
Continuation
? nextContinuation)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.ValueTaskSourceContinuation.cs (2)
90
private static
Continuation
? ResumeValueTaskSourceContinuation(
Continuation
cont, ref byte result)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.CoreCLR.cs (140)
40
public static void Create(Task dispatcher,
Continuation
nextContinuation)
100
Debug.Assert(info.AsyncProfilerInfo.CurrentContinuation is
Continuation
);
101
AsyncCallstack.EmitResumeEvent(context, currentTimestamp, dispatcherId, wrapperIndex, Unsafe.As<
Continuation
>(info.AsyncProfilerInfo.CurrentContinuation));
114
public static void Suspend(ref AsyncDispatcherInfo info,
Continuation
nextContinuation)
261
public static
Continuation
? Dispatch(ref AsyncDispatcherInfo info,
Continuation
curContinuation, ref byte resultLoc)
266
return ((delegate*<
Continuation
, ref byte,
Continuation
?>)(dispatcher))(curContinuation, ref resultLoc);
273
private static unsafe
Continuation
? Continuation_Wrapper_0(
Continuation
continuation, ref byte resultLoc)
279
private static unsafe
Continuation
? Continuation_Wrapper_1(
Continuation
continuation, ref byte resultLoc)
285
private static unsafe
Continuation
? Continuation_Wrapper_2(
Continuation
continuation, ref byte resultLoc)
291
private static unsafe
Continuation
? Continuation_Wrapper_3(
Continuation
continuation, ref byte resultLoc)
297
private static unsafe
Continuation
? Continuation_Wrapper_4(
Continuation
continuation, ref byte resultLoc)
303
private static unsafe
Continuation
? Continuation_Wrapper_5(
Continuation
continuation, ref byte resultLoc)
309
private static unsafe
Continuation
? Continuation_Wrapper_6(
Continuation
continuation, ref byte resultLoc)
315
private static unsafe
Continuation
? Continuation_Wrapper_7(
Continuation
continuation, ref byte resultLoc)
321
private static unsafe
Continuation
? Continuation_Wrapper_8(
Continuation
continuation, ref byte resultLoc)
327
private static unsafe
Continuation
? Continuation_Wrapper_9(
Continuation
continuation, ref byte resultLoc)
333
private static unsafe
Continuation
? Continuation_Wrapper_10(
Continuation
continuation, ref byte resultLoc)
339
private static unsafe
Continuation
? Continuation_Wrapper_11(
Continuation
continuation, ref byte resultLoc)
345
private static unsafe
Continuation
? Continuation_Wrapper_12(
Continuation
continuation, ref byte resultLoc)
351
private static unsafe
Continuation
? Continuation_Wrapper_13(
Continuation
continuation, ref byte resultLoc)
357
private static unsafe
Continuation
? Continuation_Wrapper_14(
Continuation
continuation, ref byte resultLoc)
363
private static unsafe
Continuation
? Continuation_Wrapper_15(
Continuation
continuation, ref byte resultLoc)
369
private static unsafe
Continuation
? Continuation_Wrapper_16(
Continuation
continuation, ref byte resultLoc)
375
private static unsafe
Continuation
? Continuation_Wrapper_17(
Continuation
continuation, ref byte resultLoc)
381
private static unsafe
Continuation
? Continuation_Wrapper_18(
Continuation
continuation, ref byte resultLoc)
387
private static unsafe
Continuation
? Continuation_Wrapper_19(
Continuation
continuation, ref byte resultLoc)
393
private static unsafe
Continuation
? Continuation_Wrapper_20(
Continuation
continuation, ref byte resultLoc)
399
private static unsafe
Continuation
? Continuation_Wrapper_21(
Continuation
continuation, ref byte resultLoc)
405
private static unsafe
Continuation
? Continuation_Wrapper_22(
Continuation
continuation, ref byte resultLoc)
411
private static unsafe
Continuation
? Continuation_Wrapper_23(
Continuation
continuation, ref byte resultLoc)
417
private static unsafe
Continuation
? Continuation_Wrapper_24(
Continuation
continuation, ref byte resultLoc)
423
private static unsafe
Continuation
? Continuation_Wrapper_25(
Continuation
continuation, ref byte resultLoc)
429
private static unsafe
Continuation
? Continuation_Wrapper_26(
Continuation
continuation, ref byte resultLoc)
435
private static unsafe
Continuation
? Continuation_Wrapper_27(
Continuation
continuation, ref byte resultLoc)
441
private static unsafe
Continuation
? Continuation_Wrapper_28(
Continuation
continuation, ref byte resultLoc)
447
private static unsafe
Continuation
? Continuation_Wrapper_29(
Continuation
continuation, ref byte resultLoc)
453
private static unsafe
Continuation
? Continuation_Wrapper_30(
Continuation
continuation, ref byte resultLoc)
459
private static unsafe
Continuation
? Continuation_Wrapper_31(
Continuation
continuation, ref byte resultLoc)
467
wrappers[0] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_0;
468
wrappers[1] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_1;
469
wrappers[2] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_2;
470
wrappers[3] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_3;
471
wrappers[4] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_4;
472
wrappers[5] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_5;
473
wrappers[6] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_6;
474
wrappers[7] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_7;
475
wrappers[8] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_8;
476
wrappers[9] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_9;
477
wrappers[10] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_10;
478
wrappers[11] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_11;
479
wrappers[12] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_12;
480
wrappers[13] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_13;
481
wrappers[14] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_14;
482
wrappers[15] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_15;
483
wrappers[16] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_16;
484
wrappers[17] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_17;
485
wrappers[18] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_18;
486
wrappers[19] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_19;
487
wrappers[20] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_20;
488
wrappers[21] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_21;
489
wrappers[22] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_22;
490
wrappers[23] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_23;
491
wrappers[24] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_24;
492
wrappers[25] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_25;
493
wrappers[26] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_26;
494
wrappers[27] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_27;
495
wrappers[28] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_28;
496
wrappers[29] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_29;
497
wrappers[30] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_30;
498
wrappers[31] = (nint)(delegate*<
Continuation
, ref byte,
Continuation
?>)&Continuation_Wrapper_31;
552
public
Continuation
? Continuation;
566
public static void EmitCreateEvent(AsyncThreadContext context, long currentTimestamp, ulong parentDispatcherId, ulong dispatcherId,
Continuation
? asyncCallstack)
573
public static void EmitSuspendEvent(AsyncThreadContext context, long currentTimestamp, ulong dispatcherId,
Continuation
? asyncCallstack)
580
public static void EmitResumeEvent(AsyncThreadContext context, long currentTimestamp, ulong dispatcherId, byte continuationIndex,
Continuation
? asyncCallstack)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeAsyncTaskContinuation.cs (2)
153
private static
Continuation
? ResumeTaskContinuation(
Continuation
cont, ref byte result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (6)
33
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
46
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
54
Continuation
headContinuation, int offset, Action continuation)
77
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
103
Continuation
? sentinelContinuation = state.SentinelContinuation ??= new Continuation();
111
Continuation
headContinuation, int offset, Action continuation)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (10)
239
internal static void ReplaceOrAddRuntimeAsyncContinuationTimestamp(
Continuation
curContinuation,
Continuation
newContinuation)
256
internal static void TryAddRuntimeAsyncContinuationChainTimestamps(
Continuation
continuationChain)
262
Continuation
? nc = continuationChain;
271
internal static void RemoveRuntimeAsyncContinuationTimestamp(
Continuation
continuation)
283
internal static void RemoveRuntimeAsyncContinuationChainTimestamps(
Continuation
continuation, uint count)
291
Continuation
? nc = continuation;
300
internal static void UpdateRuntimeAsyncTaskTimestamp(Task task,
Continuation
timestampSource)
338
internal static void RemoveRuntimeAsyncTask(Task task,
Continuation
continuationChain)
348
Continuation
? nc = continuationChain;