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

Comparing jsr166/src/jsr166y/ForkJoinTask.java (file contents):
Revision 1.28 by jsr166, Sun Aug 2 17:02:06 2009 UTC vs.
Revision 1.30 by dl, Sun Aug 2 22:28:23 2009 UTC

# Line 698 | Line 698 | public abstract class ForkJoinTask<V> im
698       *
699       * <p>This method may be overridden in subclasses, but if so, must
700       * still ensure that these minimal properties hold. In particular,
701 <     * the cancel method itself must not throw exceptions.
701 >     * the {@code cancel} method itself must not throw exceptions.
702       *
703       * <p>This method is designed to be invoked by <em>other</em>
704       * tasks. To terminate the current task, you can just return or
# Line 727 | Line 727 | public abstract class ForkJoinTask<V> im
727  
728      /**
729       * Returns the exception thrown by the base computation, or a
730 <     * CancellationException if cancelled, or null if none or if the
731 <     * method has not yet completed.
730 >     * {@code CancellationException} if cancelled, or {@code null} if
731 >     * none or if the method has not yet completed.
732       *
733       * @return the exception, or {@code null} if none
734       */
# Line 884 | Line 884 | public abstract class ForkJoinTask<V> im
884       * this task, but only if reuse occurs when this task has either
885       * never been forked, or has been forked, then completed and all
886       * outstanding joins of this task have also completed. Effects
887 <     * under any other usage conditions are not guaranteed, and are
888 <     * discouraged. This method may be useful when executing
887 >     * under any other usage conditions are not guaranteed.
888 >     * This method may be useful when executing
889       * pre-constructed trees of subtasks in loops.
890       */
891      public void reinitialize() {
# Line 965 | Line 965 | public abstract class ForkJoinTask<V> im
965       * ForkJoinTask computations (as may be determined using method
966       * {@link #inForkJoinPool}). Attempts to invoke in other contexts
967       * result in exceptions or errors, possibly including
968 <     * ClassCastException.  *
968 >     * ClassCastException.
969       * @return the surplus number of tasks, which may be negative
970       */
971      public static int getSurplusQueuedTaskCount() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines