Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for remainingNanos (0.08 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/AbstractFutureState.java

          return getDoneValue(localValue);
        }
        // we delay calling nanoTime until we know we will need to either park or spin
        long endNanos = remainingNanos > 0 ? System.nanoTime() + remainingNanos : 0;
        long_wait_loop:
        if (remainingNanos >= SPIN_THRESHOLD_NANOS) {
          Waiter oldHead = waitersField;
          if (oldHead != Waiter.TOMBSTONE) {
            Waiter node = new Waiter();
            do {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
  3. 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