ThreadState.cs 746 B

123456789101112131415161718192021222324
  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. namespace System.Threading
  5. {
  6. [Flags]
  7. public enum ThreadState
  8. {
  9. /*=========================================================================
  10. ** Constants for thread states.
  11. =========================================================================*/
  12. Running = 0,
  13. StopRequested = 1,
  14. SuspendRequested = 2,
  15. Background = 4,
  16. Unstarted = 8,
  17. Stopped = 16,
  18. WaitSleepJoin = 32,
  19. Suspended = 64,
  20. AbortRequested = 128,
  21. Aborted = 256
  22. }
  23. }