6 references to ThreadLocal
Aspire.Hosting.Testing (1)
DistributedApplicationEntryPointInvoker.cs (1)
211private static readonly ThreadLocal<TestingBuilderFactory?> s_currentListener = new();
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformGraphicsService.cs (1)
20 private static readonly ThreadLocal<ICanvasResourceCreator> _threadLocalCreator = new ThreadLocal<ICanvasResourceCreator>();
System.Collections.Concurrent (2)
System\Collections\Concurrent\ConcurrentBag.cs (2)
45_locals = new ThreadLocal<WorkStealingQueue>(); 60_locals = new ThreadLocal<WorkStealingQueue>();
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
31private readonly ThreadLocal<ProcessingMode> m_threadProcessingMode = new ThreadLocal<ProcessingMode>();
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
661return new LocalDataStoreSlot(new ThreadLocal<object?>());