Searched refs:remainingNanos (Results 1 – 4 of 4) sorted by relevance
79 long remainingNanos = unit.toNanos(timeout); in awaitUninterruptibly() local80 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly()85 return latch.await(remainingNanos, NANOSECONDS); in awaitUninterruptibly()88 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly()167 long remainingNanos = unit.toNanos(timeout); in getUninterruptibly() local168 long end = System.nanoTime() + remainingNanos; in getUninterruptibly()173 return future.get(remainingNanos, NANOSECONDS); in getUninterruptibly()176 remainingNanos = end - System.nanoTime(); in getUninterruptibly()196 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly() local197 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly()[all …]
94 long remainingNanos = node.remainingNanos(now); in scheduleTimeout() local96 if (prev.next == null || remainingNanos < prev.next.remainingNanos(now)) { in scheduleTimeout()133 private long remainingNanos(long now) { in remainingNanos() method in AsyncTimeout315 long waitNanos = node.remainingNanos(System.nanoTime());
123 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly() local124 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly()129 NANOSECONDS.timedJoin(thread, remainingNanos); in joinUninterruptibly()133 remainingNanos = end - System.nanoTime(); in joinUninterruptibly()
179 long remainingNanos = TimeUnit.MILLISECONDS.toNanos(10); in spin() local182 while ((elapsed = System.nanoTime() - start) < remainingNanos) {} in spin()