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

Comparing jsr166/src/main/java/util/concurrent/ThreadPoolExecutor.java (file contents):
Revision 1.43 by dl, Fri Dec 19 14:42:25 2003 UTC vs.
Revision 1.44 by dl, Mon Dec 22 16:25:20 2003 UTC

# Line 1067 | Line 1067 | public class ThreadPoolExecutor extends
1067      }
1068  
1069      /**
1070 <     * Removes this task from internal queue if it is present, thus
1071 <     * causing it not to be run if it has not already started.  This
1072 <     * method may be useful as one part of a cancellation scheme.
1070 >     * Removes this task from the executor's internal queue if it is
1071 >     * present, thus causing it not to be run if it has not already
1072 >     * started.
1073 >     *
1074 >     * <p> This method may be useful as one part of a cancellation
1075 >     * scheme.  It may fail to remove tasks that have been converted
1076 >     * into other forms before being placed on the internal queue. For
1077 >     * example, a task entered using <tt>submit</tt> might be
1078 >     * converted into a form that maintains <tt>Future</tt> status.
1079 >     * However, in such cases, method {@link ThreadPoolExecutor#purge}
1080 >     * may be used to remove those Futures that have been cancelled.
1081 >     *
1082       *
1083       * @param task the task to remove
1084       * @return true if the task was removed

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines