1 write to CurrentThread
System.Private.CoreLib (1)
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
275
stackState->Push(
CurrentThread
??= Thread.CurrentThread);
8 references to CurrentThread
System.Private.CoreLib (8)
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (8)
259
Thread? curThread =
CurrentThread
;
281
Debug.Assert(
CurrentThread
!= null);
282
StackState->Pop(
CurrentThread
);
412
Thread? currentThread = state.
CurrentThread
;
576
Debug.Assert(awaitState.
CurrentThread
!= null);
577
RestoreExecutionContext(awaitState.
CurrentThread
, curContinuation.GetExecutionContext());
682
Debug.Assert(awaitState.
CurrentThread
!= null);
683
RestoreExecutionContext(awaitState.
CurrentThread
, curContinuation.GetExecutionContext());