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.39 by jsr166, Wed Aug 5 00:57:41 2009 UTC vs.
Revision 1.40 by dl, Wed Aug 5 11:09:28 2009 UTC

# Line 726 | Line 726 | public abstract class ForkJoinTask<V> im
726          return (status & COMPLETION_MASK) == CANCELLED;
727      }
728  
729    /**
730     * Returns {@code true} if the computation performed by this task
731     * has completed (or has been cancelled).
732     *
733     * @return {@code true} if this computation has completed
734     */
729      public final boolean isDone() {
730          return status < 0;
731      }
732  
739    /**
740     * Returns {@code true} if this task was cancelled.
741     *
742     * @return {@code true} if this task was cancelled
743     */
733      public final boolean isCancelled() {
734          return (status & COMPLETION_MASK) == CANCELLED;
735      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines