| 32 | } |
| 33 | |
| 34 | public static class ThreadTask implements Runnable { |
| 35 | public ThreadTask() { |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public void run() { |
| 40 | try { |
| 41 | Thread.sleep(15); |
| 42 | Thread.sleep(15); |
| 43 | add(); |
| 44 | tryNotifyAdd(); |
| 45 | |
| 46 | } catch (InterruptedException e) { |
| 47 | e.printStackTrace(); |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | public static void main(String[] args) throws InterruptedException { |
| 53 | threadPool = new ThreadPoolExecutor(ThreadCount, ThreadCount, 0L, |
nothing calls this directly
no outgoing calls
no test coverage detected