# | Line 1637 | Line 1637 | public class JSR166TestCase extends Test | |
---|---|---|
1637 | } | |
1638 | } | |
1639 | ||
1640 | + | public void await(CyclicBarrier barrier) { |
1641 | + | try { |
1642 | + | barrier.await(LONG_DELAY_MS, MILLISECONDS); |
1643 | + | } catch (Throwable fail) { |
1644 | + | threadUnexpectedException(fail); |
1645 | + | } |
1646 | + | } |
1647 | + | |
1648 | // /** | |
1649 | // * Spin-waits up to LONG_DELAY_MS until flag becomes true. | |
1650 | // */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |