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

Comparing jsr166/src/jsr166e/ForkJoinTask.java (file contents):
Revision 1.16 by dl, Fri Sep 20 10:52:13 2013 UTC vs.
Revision 1.19 by jsr166, Thu Jun 30 14:17:04 2016 UTC

# Line 71 | Line 71 | import java.lang.reflect.Constructor;
71   * encountering the exception; minimally only the latter.
72   *
73   * <p>It is possible to define and use ForkJoinTasks that may block,
74 < * but doing do requires three further considerations: (1) Completion
74 > * but doing so requires three further considerations: (1) Completion
75   * of few if any <em>other</em> tasks should be dependent on a task
76   * that blocks on external synchronization or I/O. Event-style async
77   * tasks that are never joined (for example, those subclassing {@link
# Line 1086 | Line 1086 | public abstract class ForkJoinTask<V> im
1086  
1087      /**
1088       * Possibly executes tasks until the pool hosting the current task
1089 <     * {@link ForkJoinPool#isQuiescent is quiescent}. This method may
1090 <     * be of use in designs in which many tasks are forked, but none
1091 <     * are explicitly joined, instead executing them until all are
1092 <     * processed.
1089 >     * {@linkplain ForkJoinPool#isQuiescent is quiescent}.  This
1090 >     * method may be of use in designs in which many tasks are forked,
1091 >     * but none are explicitly joined, instead executing them until
1092 >     * all are processed.
1093       */
1094      public static void helpQuiesce() {
1095          Thread t;
# Line 1347 | Line 1347 | public abstract class ForkJoinTask<V> im
1347      }
1348  
1349      /**
1350 <     * Adaptor for Runnables. This implements RunnableFuture
1350 >     * Adapter for Runnables. This implements RunnableFuture
1351       * to be compliant with AbstractExecutorService constraints
1352       * when used in ForkJoinPool.
1353       */
# Line 1368 | Line 1368 | public abstract class ForkJoinTask<V> im
1368      }
1369  
1370      /**
1371 <     * Adaptor for Runnables without results
1371 >     * Adapter for Runnables without results
1372       */
1373      static final class AdaptedRunnableAction extends ForkJoinTask<Void>
1374          implements RunnableFuture<Void> {
# Line 1385 | Line 1385 | public abstract class ForkJoinTask<V> im
1385      }
1386  
1387      /**
1388 <     * Adaptor for Runnables in which failure forces worker exception
1388 >     * Adapter for Runnables in which failure forces worker exception
1389       */
1390      static final class RunnableExecuteAction extends ForkJoinTask<Void> {
1391          final Runnable runnable;
# Line 1403 | Line 1403 | public abstract class ForkJoinTask<V> im
1403      }
1404  
1405      /**
1406 <     * Adaptor for Callables
1406 >     * Adapter for Callables
1407       */
1408      static final class AdaptedCallable<T> extends ForkJoinTask<T>
1409          implements RunnableFuture<T> {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines