Home
last modified time | relevance | path

Searched refs:timeoutNanos (Results 1 – 4 of 4) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantLockTest.java167 long timeoutNanos = MILLISECONDS.toNanos(timeoutMillis); in await() local
168 long nanosRemaining = c.awaitNanos(timeoutNanos); in await()
169 assertTrue(nanosRemaining > timeoutNanos / 2); in await()
170 assertTrue(nanosRemaining <= timeoutNanos); in await()
537 long timeoutNanos = MILLISECONDS.toNanos(timeoutMillis);
538 long nanosRemaining = c.awaitNanos(timeoutNanos);
DReentrantReadWriteLockTest.java176 long timeoutNanos = MILLISECONDS.toNanos(timeoutMillis); in await() local
177 long nanosRemaining = c.awaitNanos(timeoutNanos); in await()
178 assertTrue(nanosRemaining > timeoutNanos / 2); in await()
179 assertTrue(nanosRemaining <= timeoutNanos); in await()
939 long timeoutNanos = MILLISECONDS.toNanos(timeoutMillis);
940 long nanosRemaining = c.awaitNanos(timeoutNanos);
DForkJoinPoolTest.java255 long timeoutNanos = 999999L; in testAwaitTermination_timesOut() local
257 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
258 assertTrue(System.nanoTime() - startTime >= timeoutNanos); in testAwaitTermination_timesOut()
DThreadPoolExecutorTest.java468 long timeoutNanos = 999999L; in testAwaitTermination_timesOut() local
470 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
471 assertTrue(System.nanoTime() - startTime >= timeoutNanos); in testAwaitTermination_timesOut()