1 instantiation of LocalDataStoreSlot
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
664
return new
LocalDataStoreSlot
(new ThreadLocal<object?>());
27 references to LocalDataStoreSlot
mscorlib (1)
parent\ref\mscorlib.cs (1)
358
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
LocalDataStoreSlot
))]
netstandard (1)
netstandard.cs (1)
1047
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
LocalDataStoreSlot
))]
PresentationCore (2)
System\Windows\InterOp\HwndSource.cs (1)
2802
private static System.
LocalDataStoreSlot
_threadSlot;
System\Windows\OleServicesContext.cs (1)
31
private static readonly
LocalDataStoreSlot
s_threadDataSlot = Thread.AllocateDataSlot();
PresentationFramework (2)
System\Windows\Controls\Grid.cs (1)
3334
private static readonly
LocalDataStoreSlot
s_tempDefinitionsDataSlot = Thread.AllocateDataSlot();
System\windows\Documents\TextEditor.cs (1)
2017
private static
LocalDataStoreSlot
_threadLocalStoreSlot = Thread.AllocateDataSlot();
System.Private.CoreLib (20)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (20)
502
public static
LocalDataStoreSlot
AllocateDataSlot() => LocalDataStore.AllocateSlot();
503
public static
LocalDataStoreSlot
AllocateNamedDataSlot(string name) => LocalDataStore.AllocateNamedSlot(name);
504
public static
LocalDataStoreSlot
GetNamedDataSlot(string name) => LocalDataStore.GetNamedSlot(name);
506
public static object? GetData(
LocalDataStoreSlot
slot) => LocalDataStore.GetData(slot);
507
public static void SetData(
LocalDataStoreSlot
slot, object? data) => LocalDataStore.SetData(slot, data);
660
private static Dictionary<string,
LocalDataStoreSlot
>? s_nameToSlotMap;
662
public static
LocalDataStoreSlot
AllocateSlot()
667
private static Dictionary<string,
LocalDataStoreSlot
> EnsureNameToSlotMap()
669
Dictionary<string,
LocalDataStoreSlot
>? nameToSlotMap = s_nameToSlotMap;
675
nameToSlotMap = new Dictionary<string,
LocalDataStoreSlot
>();
679
public static
LocalDataStoreSlot
AllocateNamedSlot(string name)
681
LocalDataStoreSlot
slot = AllocateSlot();
682
Dictionary<string,
LocalDataStoreSlot
> nameToSlotMap = EnsureNameToSlotMap();
690
public static
LocalDataStoreSlot
GetNamedSlot(string name)
692
Dictionary<string,
LocalDataStoreSlot
> nameToSlotMap = EnsureNameToSlotMap();
695
if (!nameToSlotMap.TryGetValue(name, out
LocalDataStoreSlot
? slot))
706
Dictionary<string,
LocalDataStoreSlot
> nameToSlotMap = EnsureNameToSlotMap();
713
private static ThreadLocal<object?> GetThreadLocal(
LocalDataStoreSlot
slot)
721
public static object? GetData(
LocalDataStoreSlot
slot)
726
public static void SetData(
LocalDataStoreSlot
slot, object? value)
System.Threading.Thread (1)
src\runtime\artifacts\obj\System.Threading.Thread\Release\net11.0\System.Threading.Thread.Forwards.cs (1)
3
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
LocalDataStoreSlot
))]