Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.Thread Class Referencesealed

Classes

class  LocalDataStore
 
class  StartHelper
 

Public Member Functions

ApartmentState GetApartmentState ()
 
void DisableComObjectEagerCleanup ()
 
void Interrupt ()
 
bool Join (int millisecondsTimeout)
 
 Thread (ThreadStart start)
 
 Thread (ThreadStart start, int maxStackSize)
 
 Thread (ParameterizedThreadStart start)
 
 Thread (ParameterizedThreadStart start, int maxStackSize)
 
void Start (object? parameter)
 
void UnsafeStart (object? parameter)
 
void Start ()
 
void UnsafeStart ()
 
void Abort ()
 
void Abort (object? stateInfo)
 
void Suspend ()
 
void Resume ()
 
void SetApartmentState (ApartmentState state)
 
bool TrySetApartmentState (ApartmentState state)
 
CompressedStack GetCompressedStack ()
 
void SetCompressedStack (CompressedStack stack)
 
override int GetHashCode ()
 
void Join ()
 
bool Join (TimeSpan timeout)
 

Static Public Member Functions

static void SpinWait (int iterations)
 
static bool Yield ()
 
static int GetCurrentProcessorId ()
 
static void Sleep (int millisecondsTimeout)
 
static void ResetAbort ()
 
static void BeginCriticalRegion ()
 
static void EndCriticalRegion ()
 
static void BeginThreadAffinity ()
 
static void EndThreadAffinity ()
 
static LocalDataStoreSlot AllocateDataSlot ()
 
static LocalDataStoreSlot AllocateNamedDataSlot (string name)
 
static LocalDataStoreSlot GetNamedDataSlot (string name)
 
static void FreeNamedDataSlot (string name)
 
static ? object GetData (LocalDataStoreSlot slot)
 
static void SetData (LocalDataStoreSlot slot, object? data)
 
static AppDomain GetDomain ()
 
static int GetDomainID ()
 
static void MemoryBarrier ()
 
static void Sleep (TimeSpan timeout)
 
static byte VolatileRead (ref byte address)
 
static double VolatileRead (ref double address)
 
static short VolatileRead (ref short address)
 
static int VolatileRead (ref int address)
 
static long VolatileRead (ref long address)
 
static IntPtr VolatileRead (ref IntPtr address)
 
static ? object VolatileRead ([NotNullIfNotNull("address")] ref object? address)
 
static sbyte VolatileRead (ref sbyte address)
 
static float VolatileRead (ref float address)
 
static ushort VolatileRead (ref ushort address)
 
static uint VolatileRead (ref uint address)
 
static ulong VolatileRead (ref ulong address)
 
static UIntPtr VolatileRead (ref UIntPtr address)
 
static void VolatileWrite (ref byte address, byte value)
 
static void VolatileWrite (ref double address, double value)
 
static void VolatileWrite (ref short address, short value)
 
static void VolatileWrite (ref int address, int value)
 
static void VolatileWrite (ref long address, long value)
 
static void VolatileWrite (ref IntPtr address, IntPtr value)
 
static void VolatileWrite ([NotNullIfNotNull("value")] ref object? address, object? value)
 
static void VolatileWrite (ref sbyte address, sbyte value)
 
static void VolatileWrite (ref float address, float value)
 
static void VolatileWrite (ref ushort address, ushort value)
 
static void VolatileWrite (ref uint address, uint value)
 
static void VolatileWrite (ref ulong address, ulong value)
 
static void VolatileWrite (ref UIntPtr address, UIntPtr value)
 

Package Functions

ThreadHandle GetNativeHandle ()
 
static void UninterruptibleSleep0 ()
 
int GetApartmentStateNative ()
 
int SetApartmentStateNative (int state)
 
static int GetCurrentProcessorNumber ()
 
void ResetThreadPoolThread ()
 
void SetThreadPoolWorkerThreadName ()
 

Package Attributes

ExecutionContext _executionContext
 
SynchronizationContext _synchronizationContext
 

Properties

int ManagedThreadId [get]
 
bool IsAlive [get]
 
bool IsBackground [get, set]
 
bool IsThreadPoolThread [get, set]
 
ThreadPriority Priority [get, set]
 
ThreadState ThreadState [get]
 
static int OptimalMaxSpinWaitsPerSpinIteration [get]
 
static bool IsThreadStartSupported [get]
 
CultureInfo CurrentCulture [get, set]
 
CultureInfo CurrentUICulture [get, set]
 
static ? IPrincipal CurrentPrincipal [get, set]
 
static Thread CurrentThread [get]
 
static ulong CurrentOSThreadId [get]
 
ExecutionContextExecutionContext [get]
 
stringName [get, set]
 
ApartmentState ApartmentState [get, set]
 

Private Member Functions

 Thread ()
 
unsafe void StartCore ()
 
static unsafe void StartInternal (ThreadHandle t, int stackSize, int priority, char *pThreadName)
 
void StartCallback ()
 
static IntPtr InternalGetCurrentThread ()
 
static void SleepInternal (int millisecondsTimeout)
 
static void SpinWaitInternal (int iterations)
 
static Interop.BOOL YieldInternal ()
 
static Thread GetCurrentThreadNative ()
 
void Initialize ()
 
 ~Thread ()
 
void InternalFinalize ()
 
static void InformThreadNameChange (ThreadHandle t, string name, int len)
 
bool IsBackgroundNative ()
 
void SetBackgroundNative (bool isBackground)
 
int GetPriorityNative ()
 
void SetPriorityNative (int priority)
 
static ulong GetCurrentOSThreadId ()
 
int GetThreadStateNative ()
 
bool SetApartmentStateUnchecked (ApartmentState state, bool throwOnError)
 
void Start (object parameter, bool captureContext)
 
void Start (bool captureContext)
 
void RequireCurrentThread ()
 
void SetCultureOnUnstartedThread (CultureInfo value, bool uiCulture)
 
void ThreadNameChanged (string value)
 
void ResetThreadPoolThreadSlow ()
 
bool SetApartmentState (ApartmentState state, bool throwOnError)
 

Static Private Member Functions

static Thread InitializeCurrentThread ()
 

Private Attributes

string _name
 
StartHelper _startHelper
 
IntPtr _DONT_USE_InternalThread
 
int _priority
 
int _managedThreadId
 
bool _mayNeedResetForThreadPool
 

Static Private Attributes

static readonly bool s_isProcessorNumberReallyFast = ProcessorIdCache.ProcessorNumberSpeedCheck()
 
static AsyncLocal< IPrincipals_asyncLocalPrincipal
 
static Thread t_currentThread
 

Detailed Description

Definition at line 12 of file Thread.cs.


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