Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.ThreadLocal< T > Class Template Reference

Classes

class  FinalizationHelper
 
class  IdManager
 
class  LinkedSlot
 
struct  LinkedSlotVolatile
 

Public Member Functions

 ThreadLocal ()
 
 ThreadLocal (bool trackAllValues)
 
 ThreadLocal (Func< T > valueFactory)
 
 ThreadLocal (Func< T > valueFactory, bool trackAllValues)
 
void Dispose ()
 
override? string ToString ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Properties

T Value [get, set]
 
IList< TValues [get]
 
int ValuesCountForDebugDisplay [get]
 
bool IsValueCreated [get]
 
TValueForDebugDisplay [get]
 
List< T >? ValuesForDebugDisplay [get]
 

Private Member Functions

void Initialize (Func< T > valueFactory, bool trackAllValues)
 
 ~ThreadLocal ()
 
T GetValueSlow ()
 
void SetValueSlow (T value, LinkedSlotVolatile[] slotArray)
 
void CreateLinkedSlot (LinkedSlotVolatile[] slotArray, int id, T value)
 
List< TGetValuesAsList ()
 

Static Private Member Functions

static void GrowTable (ref LinkedSlotVolatile[] table, int minLength)
 
static int GetNewTableSize (int minSize)
 

Private Attributes

Func< T_valueFactory
 
int _idComplement
 
volatile bool _initialized
 
LinkedSlot _linkedSlot = new LinkedSlot(null)
 
bool _trackAllValues
 

Static Private Attributes

static LinkedSlotVolatile[] ts_slotArray
 
static FinalizationHelper ts_finalizationHelper
 
static readonly IdManager s_idManager = new IdManager()
 

Detailed Description

Definition at line 9 of file ThreadLocal.cs.


The documentation for this class was generated from the following file: