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.193 by jsr166, Fri Jul 31 17:18:14 2020 UTC vs.
Revision 1.194 by dl, Fri Nov 27 17:42:00 2020 UTC

# Line 248 | Line 248 | import java.util.concurrent.locks.Reentr
248   *
249   * </dl>
250   *
251 < * <p><b>Extension example</b>. Most extensions of this class
251 > * <p><b>Extension example.</b> Most extensions of this class
252   * override one or more of the protected hook methods. For example,
253   * here is a subclass that adds a simple pause/resume feature:
254   *
# Line 1522 | Line 1522 | public class ThreadPoolExecutor extends
1522              // As a heuristic, prestart enough new workers (up to new
1523              // core size) to handle the current number of tasks in
1524              // queue, but stop if queue becomes empty while doing so.
1525 +            /*
1526              int k = Math.min(delta, workQueue.size());
1527              while (k-- > 0 && addWorker(null, true)) {
1528                  if (workQueue.isEmpty())
1529                      break;
1530              }
1531 +            */
1532          }
1533      }
1534  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines