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.159 by jsr166, Fri Jan 30 16:44:14 2015 UTC vs.
Revision 1.160 by jsr166, Tue Feb 17 18:55:39 2015 UTC

# Line 250 | Line 250 | import java.util.concurrent.locks.Reentr
250   * override one or more of the protected hook methods. For example,
251   * here is a subclass that adds a simple pause/resume feature:
252   *
253 < *  <pre> {@code
253 > * <pre> {@code
254   * class PausableThreadPoolExecutor extends ThreadPoolExecutor {
255   *   private boolean isPaused;
256   *   private ReentrantLock pauseLock = new ReentrantLock();
# Line 1947 | Line 1947 | public class ThreadPoolExecutor extends
1947       * as in this sample subclass that prints either the direct cause
1948       * or the underlying exception if a task has been aborted:
1949       *
1950 <     *  <pre> {@code
1950 >     * <pre> {@code
1951       * class ExtendedExecutor extends ThreadPoolExecutor {
1952       *   // ...
1953       *   protected void afterExecute(Runnable r, Throwable t) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines