20 namespace Lucene.Net.Util
48 static SupportClass.WeakHashTable slots;
50 public virtual System.Object InitialValue()
55 public virtual System.Object Get()
61 value = InitialValue();
68 if (slots.ContainsKey(
this))
74 value = InitialValue();
80 public virtual void Set(System.Object object_Renamed)
83 if (SupportClass.CloseableThreadLocalProfiler.EnableCloseableThreadLocalProfiler ==
true)
85 lock (SupportClass.CloseableThreadLocalProfiler.Instances)
87 SupportClass.CloseableThreadLocalProfiler.Instances.Add(
new WeakReference(object_Renamed));
93 slots =
new SupportClass.WeakHashTable();
95 slots[
this] = object_Renamed;
98 public virtual void Close()