1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 // ------------------------------------------------------------------------------
5 // Changes to this file must follow the http://aka.ms/api-review process.
6 // ------------------------------------------------------------------------------
7 
8 namespace System
9 {
10     public sealed partial class LocalDataStoreSlot
11     {
LocalDataStoreSlot()12         private LocalDataStoreSlot() { }
~LocalDataStoreSlot()13         ~LocalDataStoreSlot() { }
14     }
15 }
16 namespace System.Threading
17 {
18     public enum ApartmentState
19     {
20         MTA = 1,
21         STA = 0,
22         Unknown = 2,
23     }
24     public sealed partial class CompressedStack : System.Runtime.Serialization.ISerializable
25     {
CompressedStack()26         private CompressedStack() { }
Capture()27         public static System.Threading.CompressedStack Capture() { throw null; }
CreateCopy()28         public System.Threading.CompressedStack CreateCopy() { throw null; }
GetCompressedStack()29         public static System.Threading.CompressedStack GetCompressedStack() { throw null; }
GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)30         public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
Run(System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object state)31         public static void Run(System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object state) { }
32     }
ParameterizedThreadStart(object obj)33     public delegate void ParameterizedThreadStart(object obj);
34     public sealed partial class Thread : System.Runtime.ConstrainedExecution.CriticalFinalizerObject
35     {
Thread(System.Threading.ParameterizedThreadStart start)36         public Thread(System.Threading.ParameterizedThreadStart start) { }
Thread(System.Threading.ParameterizedThreadStart start, int maxStackSize)37         public Thread(System.Threading.ParameterizedThreadStart start, int maxStackSize) { }
Thread(System.Threading.ThreadStart start)38         public Thread(System.Threading.ThreadStart start) { }
Thread(System.Threading.ThreadStart start, int maxStackSize)39         public Thread(System.Threading.ThreadStart start, int maxStackSize) { }
40         [System.ObsoleteAttribute("The ApartmentState property has been deprecated.  Use GetApartmentState, SetApartmentState or TrySetApartmentState instead.", false)]
41         public System.Threading.ApartmentState ApartmentState { get { throw null; } set { } }
42         public System.Globalization.CultureInfo CurrentCulture { get { throw null; } set { } }
43         public static System.Security.Principal.IPrincipal CurrentPrincipal { get { throw null; } set { } }
44         public static System.Threading.Thread CurrentThread { get { throw null; } }
45         public System.Globalization.CultureInfo CurrentUICulture { get { throw null; } set { } }
46         public System.Threading.ExecutionContext ExecutionContext { get { throw null; } }
47         public bool IsAlive { get { throw null; } }
48         public bool IsBackground { get { throw null; } set { } }
49         public bool IsThreadPoolThread { get { throw null; } }
50         public int ManagedThreadId { get { throw null; } }
51         public string Name { get { throw null; } set { } }
52         public System.Threading.ThreadPriority Priority { get { throw null; } set { } }
53         public System.Threading.ThreadState ThreadState { get { throw null; } }
Abort()54         public void Abort() { }
Abort(object stateInfo)55         public void Abort(object stateInfo) { }
AllocateDataSlot()56         public static System.LocalDataStoreSlot AllocateDataSlot() { throw null; }
AllocateNamedDataSlot(string name)57         public static System.LocalDataStoreSlot AllocateNamedDataSlot(string name) { throw null; }
BeginCriticalRegion()58         public static void BeginCriticalRegion() { }
BeginThreadAffinity()59         public static void BeginThreadAffinity() { }
DisableComObjectEagerCleanup()60         public void DisableComObjectEagerCleanup() { }
EndCriticalRegion()61         public static void EndCriticalRegion() { }
EndThreadAffinity()62         public static void EndThreadAffinity() { }
~Thread()63         ~Thread() { }
FreeNamedDataSlot(string name)64         public static void FreeNamedDataSlot(string name) { }
GetApartmentState()65         public System.Threading.ApartmentState GetApartmentState() { throw null; }
66         [System.ObsoleteAttribute("Thread.GetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")]
GetCompressedStack()67         public System.Threading.CompressedStack GetCompressedStack() { throw null; }
GetData(System.LocalDataStoreSlot slot)68         public static object GetData(System.LocalDataStoreSlot slot) { throw null; }
GetDomain()69         public static System.AppDomain GetDomain() { throw null; }
GetDomainID()70         public static int GetDomainID() { throw null; }
GetHashCode()71         public override int GetHashCode() { throw null; }
GetNamedDataSlot(string name)72         public static System.LocalDataStoreSlot GetNamedDataSlot(string name) { throw null; }
Interrupt()73         public void Interrupt() { }
Join()74         public void Join() { }
Join(int millisecondsTimeout)75         public bool Join(int millisecondsTimeout) { throw null; }
Join(System.TimeSpan timeout)76         public bool Join(System.TimeSpan timeout) { throw null; }
MemoryBarrier()77         public static void MemoryBarrier() { }
ResetAbort()78         public static void ResetAbort() { }
79         [System.ObsoleteAttribute("Thread.Resume has been deprecated.  Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.  http://go.microsoft.com/fwlink/?linkid=14202", false)]
Resume()80         public void Resume() { }
SetApartmentState(System.Threading.ApartmentState state)81         public void SetApartmentState(System.Threading.ApartmentState state) { }
82         [System.ObsoleteAttribute("Thread.SetCompressedStack is no longer supported. Please use the System.Threading.CompressedStack class")]
SetCompressedStack(System.Threading.CompressedStack stack)83         public void SetCompressedStack(System.Threading.CompressedStack stack) { }
SetData(System.LocalDataStoreSlot slot, object data)84         public static void SetData(System.LocalDataStoreSlot slot, object data) { }
Sleep(int millisecondsTimeout)85         public static void Sleep(int millisecondsTimeout) { }
Sleep(System.TimeSpan timeout)86         public static void Sleep(System.TimeSpan timeout) { }
SpinWait(int iterations)87         public static void SpinWait(int iterations) { }
Start()88         public void Start() { }
Start(object parameter)89         public void Start(object parameter) { }
90         [System.ObsoleteAttribute("Thread.Suspend has been deprecated.  Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.  http://go.microsoft.com/fwlink/?linkid=14202", false)]
Suspend()91         public void Suspend() { }
TrySetApartmentState(System.Threading.ApartmentState state)92         public bool TrySetApartmentState(System.Threading.ApartmentState state) { throw null; }
VolatileRead(ref byte address)93         public static byte VolatileRead(ref byte address) { throw null; }
VolatileRead(ref double address)94         public static double VolatileRead(ref double address) { throw null; }
VolatileRead(ref short address)95         public static short VolatileRead(ref short address) { throw null; }
VolatileRead(ref int address)96         public static int VolatileRead(ref int address) { throw null; }
VolatileRead(ref long address)97         public static long VolatileRead(ref long address) { throw null; }
VolatileRead(ref System.IntPtr address)98         public static System.IntPtr VolatileRead(ref System.IntPtr address) { throw null; }
VolatileRead(ref object address)99         public static object VolatileRead(ref object address) { throw null; }
100         [System.CLSCompliantAttribute(false)]
VolatileRead(ref sbyte address)101         public static sbyte VolatileRead(ref sbyte address) { throw null; }
VolatileRead(ref float address)102         public static float VolatileRead(ref float address) { throw null; }
103         [System.CLSCompliantAttribute(false)]
VolatileRead(ref ushort address)104         public static ushort VolatileRead(ref ushort address) { throw null; }
105         [System.CLSCompliantAttribute(false)]
VolatileRead(ref uint address)106         public static uint VolatileRead(ref uint address) { throw null; }
107         [System.CLSCompliantAttribute(false)]
VolatileRead(ref ulong address)108         public static ulong VolatileRead(ref ulong address) { throw null; }
109         [System.CLSCompliantAttribute(false)]
VolatileRead(ref System.UIntPtr address)110         public static System.UIntPtr VolatileRead(ref System.UIntPtr address) { throw null; }
VolatileWrite(ref byte address, byte value)111         public static void VolatileWrite(ref byte address, byte value) { }
VolatileWrite(ref double address, double value)112         public static void VolatileWrite(ref double address, double value) { }
VolatileWrite(ref short address, short value)113         public static void VolatileWrite(ref short address, short value) { }
VolatileWrite(ref int address, int value)114         public static void VolatileWrite(ref int address, int value) { }
VolatileWrite(ref long address, long value)115         public static void VolatileWrite(ref long address, long value) { }
VolatileWrite(ref System.IntPtr address, System.IntPtr value)116         public static void VolatileWrite(ref System.IntPtr address, System.IntPtr value) { }
VolatileWrite(ref object address, object value)117         public static void VolatileWrite(ref object address, object value) { }
118         [System.CLSCompliantAttribute(false)]
VolatileWrite(ref sbyte address, sbyte value)119         public static void VolatileWrite(ref sbyte address, sbyte value) { }
VolatileWrite(ref float address, float value)120         public static void VolatileWrite(ref float address, float value) { }
121         [System.CLSCompliantAttribute(false)]
VolatileWrite(ref ushort address, ushort value)122         public static void VolatileWrite(ref ushort address, ushort value) { }
123         [System.CLSCompliantAttribute(false)]
VolatileWrite(ref uint address, uint value)124         public static void VolatileWrite(ref uint address, uint value) { }
125         [System.CLSCompliantAttribute(false)]
VolatileWrite(ref ulong address, ulong value)126         public static void VolatileWrite(ref ulong address, ulong value) { }
127         [System.CLSCompliantAttribute(false)]
VolatileWrite(ref System.UIntPtr address, System.UIntPtr value)128         public static void VolatileWrite(ref System.UIntPtr address, System.UIntPtr value) { }
Yield()129         public static bool Yield() { throw null; }
130     }
131     public sealed partial class ThreadAbortException : System.SystemException
132     {
ThreadAbortException()133         private ThreadAbortException() { }
134         public object ExceptionState { get { throw null; } }
135     }
136     public partial class ThreadExceptionEventArgs : System.EventArgs
137     {
ThreadExceptionEventArgs(System.Exception t)138         public ThreadExceptionEventArgs(System.Exception t) { }
139         public System.Exception Exception { get { throw null; } }
140     }
ThreadExceptionEventHandler(object sender, System.Threading.ThreadExceptionEventArgs e)141     public delegate void ThreadExceptionEventHandler(object sender, System.Threading.ThreadExceptionEventArgs e);
142     public partial class ThreadInterruptedException : System.SystemException
143     {
ThreadInterruptedException()144         public ThreadInterruptedException() { }
ThreadInterruptedException(string message)145         public ThreadInterruptedException(string message) { }
ThreadInterruptedException(string message, System.Exception innerException)146         public ThreadInterruptedException(string message, System.Exception innerException) { }
ThreadInterruptedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)147         protected ThreadInterruptedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
148     }
149     public enum ThreadPriority
150     {
151         AboveNormal = 3,
152         BelowNormal = 1,
153         Highest = 4,
154         Lowest = 0,
155         Normal = 2,
156     }
ThreadStart()157     public delegate void ThreadStart();
158     public sealed partial class ThreadStartException : System.SystemException
159     {
ThreadStartException()160         internal ThreadStartException() { }
161     }
162     [System.FlagsAttribute]
163     public enum ThreadState
164     {
165         Aborted = 256,
166         AbortRequested = 128,
167         Background = 4,
168         Running = 0,
169         Stopped = 16,
170         StopRequested = 1,
171         Suspended = 64,
172         SuspendRequested = 2,
173         Unstarted = 8,
174         WaitSleepJoin = 32,
175     }
176     public partial class ThreadStateException : System.SystemException
177     {
ThreadStateException()178         public ThreadStateException() { }
ThreadStateException(string message)179         public ThreadStateException(string message) { }
ThreadStateException(string message, System.Exception innerException)180         public ThreadStateException(string message, System.Exception innerException) { }
ThreadStateException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)181         protected ThreadStateException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
182     }
183 }
184