Home
last modified time | relevance | path

Searched refs:remainingNanos (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava/src/com/google/common/util/concurrent/
DUninterruptibles.java77 long remainingNanos = unit.toNanos(timeout); in awaitUninterruptibly() local
78 long end = System.nanoTime() + remainingNanos; in awaitUninterruptibly()
83 return latch.await(remainingNanos, NANOSECONDS); in awaitUninterruptibly()
86 remainingNanos = end - System.nanoTime(); in awaitUninterruptibly()
158 long remainingNanos = unit.toNanos(timeout); in getUninterruptibly() local
159 long end = System.nanoTime() + remainingNanos; in getUninterruptibly()
164 return future.get(remainingNanos, NANOSECONDS); in getUninterruptibly()
167 remainingNanos = end - System.nanoTime(); in getUninterruptibly()
187 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly() local
188 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly()
[all …]
DMonitor.java316 long remainingNanos = timeoutNanos; in enter() local
321 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); in enter()
324 remainingNanos = (timeoutNanos - (System.nanoTime() - startNanos)); in enter()
409 long remainingNanos; in enterWhen() local
411 remainingNanos = unit.toNanos(time); in enterWhen()
417 remainingNanos = unit.toNanos(time) - (System.nanoTime() - startNanos); in enterWhen()
421 satisfied = waitInterruptibly(guard, remainingNanos, reentrant); in enterWhen()
444 long remainingNanos; in enterWhenUninterruptibly() local
446 remainingNanos = unit.toNanos(time); in enterWhenUninterruptibly()
450 remainingNanos = timeoutNanos; in enterWhenUninterruptibly()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DInterruptionUtil.java121 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly() local
122 long end = System.nanoTime() + remainingNanos; in joinUninterruptibly()
127 NANOSECONDS.timedJoin(thread, remainingNanos); in joinUninterruptibly()
131 remainingNanos = end - System.nanoTime(); in joinUninterruptibly()