57 lines
2.8 KiB
C#
57 lines
2.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>Specifies the execution states of a <see cref="T:System.Threading.Thread" />.</summary>
|
|
// Token: 0x0200035C RID: 860
|
|
[Token(Token = "0x200035C")]
|
|
[Flags]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public enum ThreadState
|
|
{
|
|
/// <summary>The thread has been started and not yet stopped.</summary>
|
|
// Token: 0x040011C7 RID: 4551
|
|
[Token(Token = "0x40011C7")]
|
|
Running = 0,
|
|
/// <summary>The thread is being requested to stop. This is for internal use only.</summary>
|
|
// Token: 0x040011C8 RID: 4552
|
|
[Token(Token = "0x40011C8")]
|
|
StopRequested = 1,
|
|
/// <summary>The thread is being requested to suspend.</summary>
|
|
// Token: 0x040011C9 RID: 4553
|
|
[Token(Token = "0x40011C9")]
|
|
SuspendRequested = 2,
|
|
/// <summary>The thread is being executed as a background thread, as opposed to a foreground thread. This state is controlled by setting the <see cref="P:System.Threading.Thread.IsBackground" /> property.</summary>
|
|
// Token: 0x040011CA RID: 4554
|
|
[Token(Token = "0x40011CA")]
|
|
Background = 4,
|
|
/// <summary>The <see cref="M:System.Threading.Thread.Start" /> method has not been invoked on the thread.</summary>
|
|
// Token: 0x040011CB RID: 4555
|
|
[Token(Token = "0x40011CB")]
|
|
Unstarted = 8,
|
|
/// <summary>The thread has stopped.</summary>
|
|
// Token: 0x040011CC RID: 4556
|
|
[Token(Token = "0x40011CC")]
|
|
Stopped = 16,
|
|
/// <summary>The thread is blocked. This could be the result of calling <see cref="M:System.Threading.Thread.Sleep(System.Int32)" /> or <see cref="M:System.Threading.Thread.Join" />, of requesting a lock - for example, by calling <see cref="M:System.Threading.Monitor.Enter(System.Object)" /> or <see cref="M:System.Threading.Monitor.Wait(System.Object,System.Int32,System.Boolean)" /> - or of waiting on a thread synchronization object such as <see cref="T:System.Threading.ManualResetEvent" />.</summary>
|
|
// Token: 0x040011CD RID: 4557
|
|
[Token(Token = "0x40011CD")]
|
|
WaitSleepJoin = 32,
|
|
/// <summary>The thread has been suspended.</summary>
|
|
// Token: 0x040011CE RID: 4558
|
|
[Token(Token = "0x40011CE")]
|
|
Suspended = 64,
|
|
/// <summary>The <see cref="M:System.Threading.Thread.Abort(System.Object)" /> method has been invoked on the thread, but the thread has not yet received the pending <see cref="T:System.Threading.ThreadAbortException" /> that will attempt to terminate it.</summary>
|
|
// Token: 0x040011CF RID: 4559
|
|
[Token(Token = "0x40011CF")]
|
|
AbortRequested = 128,
|
|
/// <summary>The thread state includes <see cref="F:System.Threading.ThreadState.AbortRequested" /> and the thread is now dead, but its state has not yet changed to <see cref="F:System.Threading.ThreadState.Stopped" />.</summary>
|
|
// Token: 0x040011D0 RID: 4560
|
|
[Token(Token = "0x40011D0")]
|
|
Aborted = 256
|
|
}
|
|
}
|