Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ~FinalizationHelper()

System.Threading.ThreadLocal< T >.FinalizationHelper.~FinalizationHelper ( )
inlineprivate

Definition at line 102 of file ThreadLocal.cs.

103 {
104 LinkedSlotVolatile[] slotArray = SlotArray;
105 int num = ThreadLocal<T>.s_idManager.IdsThatDoNotTrackValuesCount;
106 int i = 0;
107 for (; i < slotArray.Length; i++)
108 {
109 LinkedSlot value = slotArray[i].Value;
110 if (value == null)
111 {
112 continue;
113 }
114 if (num == 0 || ThreadLocal<T>.s_idManager.IdTracksAllValues(i))
115 {
116 value._slotArray = null;
117 continue;
118 }
120 {
121 if (slotArray[i].Value != null)
122 {
123 num--;
124 }
125 if (value._next != null)
126 {
127 value._next._previous = value._previous;
128 }
129 value._previous._next = value._next;
130 }
131 }
132 }
static readonly IdManager s_idManager

References System.Threading.ThreadLocal< T >.s_idManager, System.Threading.ThreadLocal< T >.FinalizationHelper.SlotArray, System.Threading.ThreadLocal< T >.Value, and System.value.