System.Threading.Thread.Thread.LocalDataStore.AllocateNamedSlot C# (CSharp) 메소드

AllocateNamedSlot() 공개 정적인 메소드

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