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

◆ GrowTable()

static void System.Threading.ThreadLocal< T >.GrowTable ( ref LinkedSlotVolatile[] table,
int minLength )
inlinestaticprivate

Definition at line 423 of file ThreadLocal.cs.

424 {
425 int newTableSize = GetNewTableSize(minLength);
426 LinkedSlotVolatile[] array = new LinkedSlotVolatile[newTableSize];
428 {
429 for (int i = 0; i < table.Length; i++)
430 {
431 LinkedSlot value = table[i].Value;
432 if (value != null && value._slotArray != null)
433 {
434 value._slotArray = array;
435 array[i] = table[i];
436 }
437 }
438 }
439 table = array;
440 }
static readonly IdManager s_idManager
static int GetNewTableSize(int minSize)

References System.array, System.Threading.ThreadLocal< T >.GetNewTableSize(), System.Threading.ThreadLocal< T >.s_idManager, and System.value.

Referenced by System.Threading.ThreadLocal< T >.SetValueSlow().