ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166e/ForkJoinPool.java
(Generate patch)

Comparing jsr166/src/jsr166e/ForkJoinPool.java (file contents):
Revision 1.41 by jsr166, Wed Jan 2 07:43:50 2013 UTC vs.
Revision 1.44 by jsr166, Fri Jan 4 18:52:18 2013 UTC

# Line 2555 | Line 2555 | public class ForkJoinPool extends Abstra
2555       * ongoing processing are automatically terminated upon program
2556       * {@link System#exit}.  Any program that relies on asynchronous
2557       * task processing to complete before program termination should
2558 <     * invoke {@link #quiesceCommonPool}, or the timeout-based {@code
2559 <     * commonPool().}{@link #awaitQuiescence}, before exit.
2558 >     * invoke {@code commonPool().}{@link #awaitQuiescence}, before
2559 >     * exit.
2560       *
2561       * @return the common pool instance
2562 +     * @since 1.8
2563       */
2564      public static ForkJoinPool commonPool() {
2565          // assert common != null : "static init error";
# Line 2741 | Line 2742 | public class ForkJoinPool extends Abstra
2742       * Returns the targeted parallelism level of the common pool.
2743       *
2744       * @return the targeted parallelism level of the common pool
2745 +     * @since 1.8
2746       */
2747      public static int getCommonPoolParallelism() {
2748          return commonParallelism;
# Line 3001 | Line 3003 | public class ForkJoinPool extends Abstra
3003       * Possibly initiates an orderly shutdown in which previously
3004       * submitted tasks are executed, but no new tasks will be
3005       * accepted. Invocation has no effect on execution state if this
3006 <     * is the {@link #commonPool}, and no additional effect if
3006 >     * is the {@link #commonPool()}, and no additional effect if
3007       * already shut down.  Tasks that are in the process of being
3008       * submitted concurrently during the course of this method may or
3009       * may not be rejected.
# Line 3019 | Line 3021 | public class ForkJoinPool extends Abstra
3021      /**
3022       * Possibly attempts to cancel and/or stop all tasks, and reject
3023       * all subsequently submitted tasks.  Invocation has no effect on
3024 <     * execution state if this is the {@link #commonPool}, and no
3024 >     * execution state if this is the {@link #commonPool()}, and no
3025       * additional effect if already shut down. Otherwise, tasks that
3026       * are in the process of being submitted or executed concurrently
3027       * during the course of this method may or may not be
# Line 3171 | Line 3173 | public class ForkJoinPool extends Abstra
3173       * Waits and/or attempts to assist performing tasks indefinitely
3174       * until the {@link #commonPool()} {@link #isQuiescent}
3175       */
3176 <    public static void quiesceCommonPool() {
3176 >    static void quiesceCommonPool() {
3177          common.awaitQuiescence(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
3178      }
3179  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines