/guava/android/guava/src/com/google/common/util/concurrent/Monitor.java
} return Longs.constrainToRange( timeoutNanos, 0L, ( Long.MAX_VALUE / 4) * 3) ;long timeoutNanos = unit.toNanos( time) ;
long timeoutNanos = unit.toNanos ( time ) ; return Longs.constrainToRange ( timeoutNanos, 0L, ( Long.MAX_VALUE / 4 ) * 3 ) ; }
return guard.waiterCount; } finally { lock.unlock(); } } private static long toSafeNanos(long time, TimeUnit unit) { <extra_id_0> private static long initNanoTime(long timeoutNanos) { if (timeoutNanos <= 0L) { return 0L; } else { long startTime = System.nanoTime(); return (startTime == 0L) ? 1L : startTime;