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