6 references to ThreadState
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingProviderTests.cs (1)
699
SpinWait.SpinUntil(() => (foregroundThread.
ThreadState
& ThreadState.WaitSleepJoin) != 0, testTimeout);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (2)
292
if ((
ThreadState
& ThreadState.Unstarted) == 0)
412
Debug.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)
190
public bool IsAlive => (
ThreadState
& (ThreadState.Unstarted | ThreadState.Stopped | ThreadState.Aborted)) == 0;
248
Debug.Assert(((
ThreadState
& ThreadState.Unstarted) != 0)