12 writes to _executionContext
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (7)
121
currentThread.
_executionContext
= executionContext.ShallowClone(isFlowSuppressed: true);
137
currentThread.
_executionContext
= executionContext.ShallowClone(isFlowSuppressed: false);
318
Thread.CurrentThread.
_executionContext
= executionContext;
335
currentThread.
_executionContext
= contextToRestore;
352
currentThread.
_executionContext
= null;
360
currentThread.
_executionContext
= null;
545
Thread.CurrentThread.
_executionContext
=
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
887
currentThread.
_executionContext
= null;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (4)
420
currentThread.
_executionContext
= suspendingExecutionContext;
1032
thread.
_executionContext
= previousExecCtx;
1094
thread.
_executionContext
= previousExecCtx;
1160
thread.
_executionContext
= previousExecCtx;
26 references to _executionContext
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (2)
33
ExecutionContext? previousExecutionCtx = currentThread.
_executionContext
;
49
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (14)
56
ExecutionContext? executionContext = Thread.CurrentThread.
_executionContext
;
81
return Thread.CurrentThread.
_executionContext
;
90
ExecutionContext? executionContext = currentThread.
_executionContext
;
116
ExecutionContext? executionContext = currentThread.
_executionContext
?? Default;
131
ExecutionContext? executionContext = currentThread.
_executionContext
;
142
ExecutionContext? executionContext = Thread.CurrentThread.
_executionContext
;
172
ExecutionContext? previousExecutionCtx0 = currentThread.
_executionContext
;
213
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
246
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
294
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
348
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
368
Debug.Assert(Thread.CurrentThread.
_executionContext
== null, "ThreadPool thread not on Default ExecutionContext.");
467
ExecutionContext? current = Thread.CurrentThread.
_executionContext
;
481
ExecutionContext? current = Thread.CurrentThread.
_executionContext
;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (10)
222
RootExecutionContext = thread.
_executionContext
;
235
ExecutionContext? currentExecutionCtx = thread.
_executionContext
;
265
StackState->LeafExecutionContext = curThread.
_executionContext
;
418
if (suspendingExecutionContext != currentThread.
_executionContext
)
977
ExecutionContext? currentExecCtx = thread.
_executionContext
;
991
execCtx = thread.
_executionContext
;
1007
ExecutionContext? currentExecCtx = thread.
_executionContext
;
1030
if (previousExecCtx != thread.
_executionContext
)
1065
ExecutionContext? threadExecCtx = thread.
_executionContext
;
1132
ExecutionContext? threadExecCtx = thread.
_executionContext
;