System.Threading.Thread.Thread.LocalDataStore.AllocateNamedSlot C# (CSharp) Method

AllocateNamedSlot() public static method

public static AllocateNamedSlot ( string name ) : LocalDataStoreSlot
name string
return LocalDataStoreSlot
            public static LocalDataStoreSlot AllocateNamedSlot(string name)
            {
                LocalDataStoreSlot slot = AllocateSlot();
                Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap();
                lock (nameToSlotMap)
                {
                    nameToSlotMap.Add(name, slot);
                }
                return slot;
            }