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.82 by dl, Thu Jun 8 10:58:00 2006 UTC vs.
Revision 1.83 by dl, Mon Jun 12 23:52:07 2006 UTC

# Line 413 | Line 413 | public class ThreadPoolExecutor extends
413       * @return the new thread, or null if threadFactory fails to create thread
414       */
415      private Thread addThread(Runnable firstTask) {
416 +        if (runState == TERMINATED) // Don't create thread if terminated
417 +            return null;
418          Worker w = new Worker(firstTask);
419          Thread t = threadFactory.newThread(w);
420          if (t != null) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines