Files
Dec2017-Script-Dump/mscorlib/System/Threading/ThreadState.cs
T
2026-06-04 11:42:34 +02:00

46 lines
2.6 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.Threading
{
/// <summary>Specifies the execution states of a <see cref="T:System.Threading.Thread" />.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x02000624 RID: 1572
[Flags]
[ComVisible(true)]
[Serializable]
public enum ThreadState
{
/// <summary>The thread has been started, it is not blocked, and there is no pending <see cref="T:System.Threading.ThreadAbortException" />.</summary>
// Token: 0x04001749 RID: 5961
Running = 0,
/// <summary>The thread is being requested to stop. This is for internal use only.</summary>
// Token: 0x0400174A RID: 5962
StopRequested = 1,
/// <summary>The thread is being requested to suspend.</summary>
// Token: 0x0400174B RID: 5963
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: 0x0400174C RID: 5964
Background = 4,
/// <summary>The <see cref="M:System.Threading.Thread.Start" /> method has not been invoked on the thread.</summary>
// Token: 0x0400174D RID: 5965
Unstarted = 8,
/// <summary>The thread has stopped.</summary>
// Token: 0x0400174E RID: 5966
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: 0x0400174F RID: 5967
WaitSleepJoin = 32,
/// <summary>The thread has been suspended.</summary>
// Token: 0x04001750 RID: 5968
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: 0x04001751 RID: 5969
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: 0x04001752 RID: 5970
Aborted = 256
}
}