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.131 by jsr166, Thu Jun 21 02:48:31 2012 UTC vs.
Revision 1.132 by jsr166, Thu Jun 21 04:06:50 2012 UTC

# Line 891 | Line 891 | public class ThreadPoolExecutor extends
891          boolean workerAdded = false;
892          Worker w = null;
893          try {
894            final ReentrantLock mainLock = this.mainLock;
894              w = new Worker(firstTask);
895              final Thread t = w.thread;
896              if (t != null) {
897 +                final ReentrantLock mainLock = this.mainLock;
898                  mainLock.lock();
899                  try {
900                      // Recheck while holding lock.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines