74 CultureInfo.CurrentCulture =
_culture;
261 CultureInfo.CurrentCulture =
value;
281 CultureInfo.CurrentUICulture =
value;
307 s_asyncLocalPrincipal.Value =
value;
344 [
Obsolete(
"The ApartmentState property has been deprecated. Use GetApartmentState, SetApartmentState or TrySetApartmentState.")]
617 startHelper._startArg =
null;
644 startHelper._uiCulture =
value;
648 startHelper._culture =
value;
671 _name =
".NET ThreadPool Worker";
680 if (
_name !=
".NET ThreadPool Worker")
694 [
Obsolete(
"Thread.Abort is not supported and throws PlatformNotSupportedException.", DiagnosticId =
"SYSLIB0006", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
700 [
Obsolete(
"Thread.Abort is not supported and throws PlatformNotSupportedException.", DiagnosticId =
"SYSLIB0006", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
706 [
Obsolete(
"Thread.Abort is not supported and throws PlatformNotSupportedException.", DiagnosticId =
"SYSLIB0006", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
712 [
Obsolete(
"Thread.Suspend has been deprecated. Use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.")]
718 [
Obsolete(
"Thread.Resume has been deprecated. Use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.")]
790 [
Obsolete(
"Code Access Security is not supported or honored by the runtime.", DiagnosticId =
"SYSLIB0003", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
796 [
Obsolete(
"Code Access Security is not supported or honored by the runtime.", DiagnosticId =
"SYSLIB0003", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
static AppDomain CurrentDomain
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static CultureInfo CurrentUICulture
static CultureInfo CurrentCulture
static string InvalidOperation_ThreadWrongThreadStart
static string PlatformNotSupported_ThreadAbort
static string PlatformNotSupported_ThreadSuspend
static string ArgumentOutOfRange_Enum
static string Format(string resourceFormat, object p1)
static string ArgumentOutOfRange_NeedNonNegOrNegative1
static string Thread_ApartmentState_ChangeFailed
static string Argument_InvalidHandle
static string Thread_Operation_RequiresCurrentThread
static string ArgumentOutOfRange_NeedNonNegNum
static string Thread_GetSetCompressedStack_NotSupported
static void RunInternal(ExecutionContext executionContext, ContextCallback callback, object state)
static ? ExecutionContext Capture()
static int CompareExchange(ref int location1, int value, int comparand)
static void MemoryBarrier()
static int GetCurrentProcessorId()
static bool ProcessorNumberSpeedCheck()
static readonly bool UsePortableThreadPool
static void FreeNamedSlot(string name)
static LocalDataStoreSlot GetNamedSlot(string name)
static Dictionary< string, LocalDataStoreSlot > s_nameToSlotMap
static LocalDataStoreSlot AllocateNamedSlot(string name)
static void SetData(LocalDataStoreSlot slot, object value)
static LocalDataStoreSlot AllocateSlot()
static object GetData(LocalDataStoreSlot slot)
static ThreadLocal< object > GetThreadLocal(LocalDataStoreSlot slot)
static Dictionary< string, LocalDataStoreSlot > EnsureNameToSlotMap()
static readonly ContextCallback s_threadStartContextCallback
StartHelper(Delegate start)
static void Callback(object state)
ExecutionContext _executionContext
static ushort VolatileRead(ref ushort address)
static void VolatileWrite(ref IntPtr address, IntPtr value)
static ulong GetCurrentOSThreadId()
static int OptimalMaxSpinWaitsPerSpinIteration
static readonly bool s_isProcessorNumberReallyFast
SynchronizationContext _synchronizationContext
static uint VolatileRead(ref uint address)
void Start(bool captureContext)
static byte VolatileRead(ref byte address)
static Thread InitializeCurrentThread()
static ? object GetData(LocalDataStoreSlot slot)
int GetApartmentStateNative()
bool TrySetApartmentState(ApartmentState state)
static void VolatileWrite([NotNullIfNotNull("value")] ref object? address, object? value)
static void Sleep(int millisecondsTimeout)
bool Join(TimeSpan timeout)
static void SetData(LocalDataStoreSlot slot, object? data)
bool _mayNeedResetForThreadPool
Thread(ParameterizedThreadStart start)
void SetBackgroundNative(bool isBackground)
void Abort(object? stateInfo)
static void VolatileWrite(ref uint address, uint value)
static long VolatileRead(ref long address)
void RequireCurrentThread()
bool IsBackgroundNative()
void SetApartmentState(ApartmentState state)
static void InformThreadNameChange(ThreadHandle t, string name, int len)
static void VolatileWrite(ref ushort address, ushort value)
static bool IsThreadStartSupported
bool SetApartmentStateUnchecked(ApartmentState state, bool throwOnError)
static IntPtr InternalGetCurrentThread()
void SetCultureOnUnstartedThread(CultureInfo value, bool uiCulture)
static sbyte VolatileRead(ref sbyte address)
static void VolatileWrite(ref float address, float value)
Thread(ParameterizedThreadStart start, int maxStackSize)
static LocalDataStoreSlot AllocateDataSlot()
void SetPriorityNative(int priority)
static void EndCriticalRegion()
static ulong VolatileRead(ref ulong address)
static double VolatileRead(ref double address)
ApartmentState ApartmentState
override int GetHashCode()
static void VolatileWrite(ref sbyte address, sbyte value)
static void VolatileWrite(ref double address, double value)
static void FreeNamedDataSlot(string name)
void Start(object parameter, bool captureContext)
ApartmentState GetApartmentState()
void ThreadNameChanged(string value)
bool Join(int millisecondsTimeout)
static int VolatileRead(ref int address)
Thread(ThreadStart start)
static unsafe void StartInternal(ThreadHandle t, int stackSize, int priority, char *pThreadName)
static ulong CurrentOSThreadId
static void EndThreadAffinity()
static Thread CurrentThread
static Thread t_currentThread
static void VolatileWrite(ref byte address, byte value)
static void VolatileWrite(ref UIntPtr address, UIntPtr value)
static void MemoryBarrier()
static Thread GetCurrentThreadNative()
ThreadHandle GetNativeHandle()
static LocalDataStoreSlot AllocateNamedDataSlot(string name)
static UIntPtr VolatileRead(ref UIntPtr address)
static ? IPrincipal CurrentPrincipal
static IntPtr VolatileRead(ref IntPtr address)
static void SleepInternal(int millisecondsTimeout)
static void SpinWaitInternal(int iterations)
int SetApartmentStateNative(int state)
void DisableComObjectEagerCleanup()
IntPtr _DONT_USE_InternalThread
void ResetThreadPoolThread()
ExecutionContext _executionContext
static ? object VolatileRead([NotNullIfNotNull("address")] ref object? address)
static short VolatileRead(ref short address)
static AppDomain GetDomain()
void Start(object? parameter)
static void Sleep(TimeSpan timeout)
int GetThreadStateNative()
bool SetApartmentState(ApartmentState state, bool throwOnError)
void SetCompressedStack(CompressedStack stack)
Thread(ThreadStart start, int maxStackSize)
void SetThreadPoolWorkerThreadName()
CultureInfo CurrentCulture
static void VolatileWrite(ref ulong address, ulong value)
static float VolatileRead(ref float address)
static void VolatileWrite(ref long address, long value)
CultureInfo CurrentUICulture
static int GetCurrentProcessorId()
static int GetCurrentProcessorNumber()
static Interop.BOOL YieldInternal()
static LocalDataStoreSlot GetNamedDataSlot(string name)
CompressedStack GetCompressedStack()
void ResetThreadPoolThreadSlow()
static void SpinWait(int iterations)
static void UninterruptibleSleep0()
void UnsafeStart(object? parameter)
static void VolatileWrite(ref int address, int value)
static void BeginThreadAffinity()
static void BeginCriticalRegion()
static void VolatileWrite(ref short address, short value)
static AsyncLocal< IPrincipal > s_asyncLocalPrincipal
static bool Read(ref bool location)
static void Write(ref bool location, bool value)
static int ToTimeoutMilliseconds(TimeSpan timeout)
delegate void ThreadStart()
delegate void ContextCallback(object? state)
delegate void ParameterizedThreadStart(object? obj)
static readonly IntPtr Zero