ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ForkJoinWorkerThread.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ForkJoinWorkerThread.java (file contents):
Revision 1.3 by jsr166, Sun Jul 26 17:48:58 2009 UTC vs.
Revision 1.4 by jsr166, Wed Jul 29 02:35:47 2009 UTC

# Line 263 | Line 263 | public class ForkJoinWorkerThread extend
263      final boolean shutdownNow()   { return transitionRunStateTo(TERMINATING); }
264  
265      /**
266 <     * Transitions to at least the given state.  Returns true if not
267 <     * already at least at given state.
266 >     * Transitions to at least the given state.
267 >     *
268 >     * @return {@code true} if not already at least at given state
269       */
270      private boolean transitionRunStateTo(int state) {
271          for (;;) {
# Line 370 | Line 371 | public class ForkJoinWorkerThread extend
371       * {@code super.onTermination} at the end of the overridden method.
372       *
373       * @param exception the exception causing this thread to abort due
374 <     * to an unrecoverable error, or null if completed normally
374 >     * to an unrecoverable error, or {@code null} if completed normally
375       */
376      protected void onTermination(Throwable exception) {
377          // Execute remaining local tasks unless aborting or terminating
# Line 665 | Line 666 | public class ForkJoinWorkerThread extend
666      }
667  
668      /**
669 <     * Returns true if at least one worker in the given array appears
670 <     * to have at least one queued task.
669 >     * Returns {@code true} if at least one worker in the given array
670 >     * appears to have at least one queued task.
671       *
672       * @param ws array of workers
673       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines