# | Line 904 | Line 904 | public class JSR166TestCase extends Test | |
---|---|---|
904 | } | |
905 | } | |
906 | ||
907 | + | public void await(Semaphore semaphore) { |
908 | + | try { |
909 | + | assertTrue(semaphore.tryAcquire(LONG_DELAY_MS, MILLISECONDS)); |
910 | + | } catch (Throwable t) { |
911 | + | threadUnexpectedException(t); |
912 | + | } |
913 | + | } |
914 | + | |
915 | // /** | |
916 | // * Spin-waits up to LONG_DELAY_MS until flag becomes true. | |
917 | // */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |