# | 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. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |