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.40 by dl, Tue Jan 1 15:10:32 2013 UTC vs.
Revision 1.42 by dl, Wed Jan 2 14:10:37 2013 UTC

# Line 1932 | Line 1932 | public class ForkJoinPool extends Abstra
1932       * @param task the task to join
1933       * @param mode if shared, exit upon completing any task
1934       * if all workers are active
1935     *
1935       */
1936      private int helpComplete(ForkJoinTask<?> task, int mode) {
1937          WorkQueue[] ws; WorkQueue q; int m, n, s, u;
# Line 2556 | 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       */
# Line 3172 | Line 3171 | public class ForkJoinPool extends Abstra
3171       * Waits and/or attempts to assist performing tasks indefinitely
3172       * until the {@link #commonPool()} {@link #isQuiescent}
3173       */
3174 <    public static void quiesceCommonPool() {
3174 >    static void quiesceCommonPool() {
3175          common.awaitQuiescence(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
3176      }
3177  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines