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.94 by dl, Tue Jun 20 22:56:41 2006 UTC vs.
Revision 1.95 by jsr166, Sun Jun 25 17:26:22 2006 UTC

# Line 616 | Line 616 | public class ThreadPoolExecutor extends
616       * still need to compensate for missing the fact that we should
617       * have added a thread (because existing ones died) or that
618       * shutdown occurred since entry into this method. So we recheck
619 <     * state to and if necessary (in ensureQueuedTaskHandled) roll
620 <     * back the enqueuing if shut down, or start a new thread if there
621 <     * are none.
619 >     * state and if necessary (in ensureQueuedTaskHandled) roll back
620 >     * the enqueuing if shut down, or start a new thread if there are
621 >     * none.
622       *
623       * 3. If we cannot queue task, then we try to add a new
624       * thread. There's no guesswork here (addIfUnderMaximumPoolSize)
# Line 1081 | Line 1081 | public class ThreadPoolExecutor extends
1081           * security managers that allow checkAccess but then throw a
1082           * SecurityException when interrupt() is invoked.  In this
1083           * third case, because we have already set runState, we can
1084 <         * only try to back out from the shutdown.as cleanly as
1084 >         * only try to back out from the shutdown as cleanly as
1085           * possible. Some threads may have been killed but we remain
1086           * in non-shutdown state (which may entail tryTerminate
1087           * starting a thread to maintain liveness.)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines