Home | History | Annotate | Download | only in concurrent

Lines Matching defs:SHUTDOWN

127  * take effect in a timely manner, and a shutdown pool may remain in a
283 * has no remaining threads will be {@code shutdown} automatically. If
285 * if users forget to call {@link #shutdown}, then you must arrange
364 * SHUTDOWN: Don't accept new tasks, but process queued tasks
376 * RUNNING -> SHUTDOWN
377 * On invocation of shutdown(), perhaps implicitly in finalize()
378 * (RUNNING or SHUTDOWN) -> STOP
380 * SHUTDOWN -> TIDYING
390 * Detecting the transition from SHUTDOWN to TIDYING is less
392 * empty after non-empty and vice versa during SHUTDOWN state, but
405 private static final int SHUTDOWN = 0 << COUNT_BITS;
429 return c < SHUTDOWN;
461 * SHUTDOWN to TIDYING). This accommodates special-purpose
473 * unnecessary interrupt storms, especially during shutdown.
477 * also hold mainLock on shutdown and shutdownNow, for the sake of
528 * will want to perform clean pool shutdown to clean up. There
535 * Handler called when saturated or shutdown in execute.
574 * Permission required for callers of shutdown and shutdownNow.
585 * silently fail. In the case of shutdown, they should not fail
691 * @param targetState the desired state, either SHUTDOWN or STOP
695 // assert targetState == SHUTDOWN || targetState == STOP;
705 * Transitions to TERMINATED state if either (SHUTDOWN and pool
708 * idle worker to ensure that shutdown signals propagate. This
711 * from the queue during shutdown. The method is non-private to
719 (runStateOf(c) == SHUTDOWN && ! workQueue.isEmpty()))
797 * most one waiting worker is interrupted to propagate shutdown
800 * workers since shutdown began will also eventually exit.
802 * interrupt only one idle worker, but shutdown() interrupts all
853 * invocation of shutdown. A no-op here, but used by
861 * enable running tasks during shutdown.
863 * @param shutdownOK true if should return true if SHUTDOWN
867 return rs == RUNNING || (rs == SHUTDOWN && shutdownOK);
926 if (rs >= SHUTDOWN &&
927 ! (rs == SHUTDOWN &&
961 if (rs < SHUTDOWN ||
962 (rs == SHUTDOWN && firstTask == null)) {
1054 * 3. The pool is shutdown and the queue is empty.
1072 if (rs >= SHUTDOWN && (rs >= STOP || workQueue.isEmpty())) {
1348 * executor has been shutdown or because its capacity has been reached,
1398 * Initiates an orderly shutdown in which previously submitted
1407 public void shutdown() {
1412 advanceRunState(SHUTDOWN);
1459 * after {@link #shutdown} or {@link #shutdownNow} but has not
1462 * period after shutdown may indicate that submitted tasks have
1495 * Invokes {@code shutdown} when this executor is no longer
1499 shutdown();
1785 tryTerminate(); // In case SHUTDOWN and now empty
1817 tryTerminate(); // In case SHUTDOWN and now empty
1948 runStateLessThan(c, SHUTDOWN) ? "Running" :