9 writes to _executionContext
System.Private.CoreLib (9)
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);
316
Thread.CurrentThread.
_executionContext
= executionContext;
333
currentThread.
_executionContext
= contextToRestore;
350
currentThread.
_executionContext
= null;
358
currentThread.
_executionContext
= null;
543
Thread.CurrentThread.
_executionContext
=
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
988
currentThread.
_executionContext
= null;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (1)
747
thread.
_executionContext
= previousExecCtx;
23 references to _executionContext
System.Private.CoreLib (23)
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
;
170
ExecutionContext? previousExecutionCtx0 = currentThread.
_executionContext
;
211
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
244
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
292
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
346
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
366
Debug.Assert(Thread.CurrentThread.
_executionContext
== null, "ThreadPool thread not on Default ExecutionContext.");
465
ExecutionContext? current = Thread.CurrentThread.
_executionContext
;
479
ExecutionContext? current = Thread.CurrentThread.
_executionContext
;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (7)
38
_previousExecutionCtx = _thread.
_executionContext
;
51
ExecutionContext? currentExecutionCtx = _thread.
_executionContext
;
200
ExecutionContext = curThread.
_executionContext
;
692
ExecutionContext? currentExecCtx = thread.
_executionContext
;
706
execCtx = thread.
_executionContext
;
722
ExecutionContext? currentExecCtx = thread.
_executionContext
;
745
if (previousExecCtx != thread.
_executionContext
)