ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ThreadPoolExecutorTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ThreadPoolExecutorTest.java (file contents):
Revision 1.37 by jsr166, Mon Oct 11 07:21:32 2010 UTC vs.
Revision 1.40 by jsr166, Tue Mar 15 19:47:07 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   * Other contributors include Andrew Wright, Jeffrey Hayes,
6   * Pat Fisher, Mike Judd.
7   */
# Line 406 | Line 406 | public class ThreadPoolExecutorTest exte
406          try {
407              p.execute(new CheckedRunnable() {
408                  public void realRun() throws InterruptedException {
409                    threadStarted.countDown();
409                      assertFalse(p.isTerminated());
410 +                    threadStarted.countDown();
411                      done.await();
412                  }});
413              assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));
414 +            assertFalse(p.isTerminating());
415              done.countDown();
416          } finally {
417              try { p.shutdown(); } catch (SecurityException ok) { return; }
# Line 433 | Line 434 | public class ThreadPoolExecutorTest exte
434              assertFalse(p.isTerminating());
435              p.execute(new CheckedRunnable() {
436                  public void realRun() throws InterruptedException {
436                    threadStarted.countDown();
437                      assertFalse(p.isTerminating());
438 +                    threadStarted.countDown();
439                      done.await();
440                  }});
441              assertTrue(threadStarted.await(SMALL_DELAY_MS, MILLISECONDS));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines