6 references to ThreadState
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingProviderTests.cs (1)
699SpinWait.SpinUntil(() => (foregroundThread.ThreadState & ThreadState.WaitSleepJoin) != 0, testTimeout);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (2)
292if ((ThreadState & ThreadState.Unstarted) == 0) 412Debug.Assert(ThreadState.HasFlag(ThreadState.Unstarted) || this == CurrentThread);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadStateException.cs (1)
11/// The exception that is thrown when a <see cref="Thread" /> is in an invalid <see cref="Thread.ThreadState" /> for the method call.
src\System\Threading\Thread.CoreCLR.cs (2)
190public bool IsAlive => (ThreadState & (ThreadState.Unstarted | ThreadState.Stopped | ThreadState.Aborted)) == 0; 248Debug.Assert(((ThreadState & ThreadState.Unstarted) != 0)