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.70 by dl, Tue Nov 23 00:10:39 2010 UTC vs.
Revision 1.71 by dl, Tue Nov 23 10:51:18 2010 UTC

# Line 278 | Line 278 | public abstract class ForkJoinTask<V> im
278      }
279  
280      /**
281 <     * Blocks a non-worker-thread until completion or interruption or timeout
281 >     * Blocks a non-worker-thread until completion or interruption or timeout.
282       */
283      private void externalInterruptibleAwaitDone(boolean timed, long nanos)
284          throws InterruptedException {
# Line 842 | Line 842 | public abstract class ForkJoinTask<V> im
842      }
843  
844      /**
845 <     * Returns {@code true} if the current thread is executing as a
846 <     * ForkJoinPool computation.
845 >     * Returns {@code true} if the current thread is a {@link
846 >     * ForkJoinWorkerThread} executing as a ForkJoinPool computation.
847       *
848 <     * @return {@code true} if the current thread is executing as a
849 <     * ForkJoinPool computation, or false otherwise
848 >     * @return {@code true} if the current thread is a {@link
849 >     * ForkJoinWorkerThread} executing as a ForkJoinPool computation,
850 >     * or {@code false} otherwise
851       */
852      public static boolean inForkJoinPool() {
853          return Thread.currentThread() instanceof ForkJoinWorkerThread;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines