Lines Matching refs:ThreadState
75 private static enum ThreadState
100 private ThreadState(boolean shutdownInitiated)
177 private volatile AtomicReference<ThreadState> threadState =
178 new AtomicReference<>(ThreadState.IDLE);
393 setThreadStateIfNotShuttingDown(ThreadState.SHUTTING_DOWN);
402 setThreadStateIfNotShuttingDown(ThreadState.PROCESSING);
411 setThreadStateIfNotShuttingDown(ThreadState.IDLE);
421 private void setThreadStateIfNotShuttingDown(ThreadState newState)
423 ThreadState currentState = this.threadState.get();
436 * {@link ThreadState#STOPPED} if the thread is not alive.
438 * @return an {@link AtomicReference} to a ThreadState. It can be passed down
441 private AtomicReference<ThreadState> getThreadState()
445 this.threadState.set(ThreadState.STOPPED);