Searched refs:timeoutNanos (Results 1 – 4 of 4) sorted by relevance
167 long timeoutNanos = MILLISECONDS.toNanos(timeoutMillis); in await() local168 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);
176 long timeoutNanos = MILLISECONDS.toNanos(timeoutMillis); in await() local177 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);
255 long timeoutNanos = 999999L; in testAwaitTermination_timesOut() local257 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()258 assertTrue(System.nanoTime() - startTime >= timeoutNanos); in testAwaitTermination_timesOut()
468 long timeoutNanos = 999999L; in testAwaitTermination_timesOut() local470 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()471 assertTrue(System.nanoTime() - startTime >= timeoutNanos); in testAwaitTermination_timesOut()