Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for remainingNanos (0.07 seconds)

  1. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

        try {
          long remainingNanos = unit.toNanos(timeout);
          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // CountDownLatch treats negative timeouts just like zero.
              return latch.await(remainingNanos, NANOSECONDS);
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 23:24:32 GMT 2026
    - 22.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/Monitor.java

                } else {
                  long remainingNanos;
                  if (startTime == 0L) {
                    startTime = initNanoTime(timeoutNanos);
                    remainingNanos = timeoutNanos;
                  } else {
                    remainingNanos = remainingNanos(startTime, timeoutNanos);
                  }
                  satisfied = awaitNanos(guard, remainingNanos, signalBeforeWaiting);
                }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 43.5K bytes
    - Click Count (0)
Back to Top