Lines Matching defs:SHUTDOWN
342 * SHUTDOWN: Don't accept new tasks, but process queued tasks
354 * RUNNING -> SHUTDOWN
356 * (RUNNING or SHUTDOWN) -> STOP
358 * SHUTDOWN -> TIDYING
368 * Detecting the transition from SHUTDOWN to TIDYING is less
370 * empty after non-empty and vice versa during SHUTDOWN state, but
381 private static final int SHUTDOWN = 0 << COUNT_BITS;
405 return c < SHUTDOWN;
437 * SHUTDOWN to TIDYING). This accommodates special-purpose
665 * @param targetState the desired state, either SHUTDOWN or STOP
678 * Transitions to TERMINATED state if either (SHUTDOWN and pool
692 (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
836 * @param shutdownOK true if should return true if SHUTDOWN
840 return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
899 if (rs >= SHUTDOWN &&
900 ! (rs == SHUTDOWN &&
935 if (rs < SHUTDOWN ||
936 (rs == SHUTDOWN && firstTask == null)) {
1046 if (rs >= SHUTDOWN && (rs >= STOP || workQueue.isEmpty())) {
1391 advanceRunState(SHUTDOWN);
1754 tryTerminate(); // In case SHUTDOWN and now empty
1786 tryTerminate(); // In case SHUTDOWN and now empty
1916 String rs = (runStateLessThan(c, SHUTDOWN) ? "Running" :