7 writes to _synchronizationContext
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
46currentThread._synchronizationContext = previousSyncCtx;
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (4)
193currentThread._synchronizationContext = previousSyncCtx; 280currentThread._synchronizationContext = null; 334currentThread._synchronizationContext = null; 342currentThread._synchronizationContext = null;
src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationContext.cs (1)
55public static void SetSynchronizationContext(SynchronizationContext? syncContext) => Thread.CurrentThread._synchronizationContext = syncContext;
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
1056currentThread._synchronizationContext = null;
6 references to _synchronizationContext
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (2)
34SynchronizationContext? previousSyncCtx = currentThread._synchronizationContext; 43if (previousSyncCtx != currentThread._synchronizationContext)
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (3)
163SynchronizationContext? previousSyncCtx = currentThread._synchronizationContext; 190if (currentThread._synchronizationContext != previousSyncCtx) 352Debug.Assert(Thread.CurrentThread._synchronizationContext == null, "ThreadPool thread not on Default SynchronizationContext.");
src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationContext.cs (1)
16public static SynchronizationContext? Current => Thread.CurrentThread._synchronizationContext;