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

◆ CreateLinkedSlot()

void System.Threading.ThreadLocal< T >.CreateLinkedSlot ( LinkedSlotVolatile[] slotArray,
int id,
T value )
inlineprivate

Definition at line 386 of file ThreadLocal.cs.

387 {
388 LinkedSlot linkedSlot = new LinkedSlot(slotArray);
390 {
391 if (!_initialized)
392 {
393 throw new ObjectDisposedException(SR.ThreadLocal_Disposed);
394 }
395 LinkedSlot linkedSlot2 = (linkedSlot._next = _linkedSlot._next);
396 linkedSlot._previous = _linkedSlot;
397 linkedSlot._value = value;
398 if (linkedSlot2 != null)
399 {
400 linkedSlot2._previous = linkedSlot;
401 }
402 _linkedSlot._next = linkedSlot;
403 slotArray[id].Value = linkedSlot;
404 }
405 }
static readonly IdManager s_idManager

References System.Threading.ThreadLocal< T >._initialized, System.Threading.ThreadLocal< T >._linkedSlot, System.Threading.ThreadLocal< T >.LinkedSlot._next, System.Threading.ThreadLocal< T >.s_idManager, System.SR.ThreadLocal_Disposed, and System.value.

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