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

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.88 by jsr166, Tue May 31 15:01:24 2011 UTC vs.
Revision 1.89 by jsr166, Fri Jun 3 05:07:14 2011 UTC

# 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   //      */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines