Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for nanos (0.01 sec)

  1. android/guava/src/com/google/common/base/Suppliers.java

          long nanos = expirationNanos;
          long now = System.nanoTime();
          if (nanos == 0 || now - nanos >= 0) {
            synchronized (lock) {
              if (nanos == expirationNanos) { // recheck for lost race
                T t = delegate.get();
                value = t;
                nanos = now + durationNanos;
                // In the very unlikely event that nanos is 0, set it to 1;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Suppliers.java

          long nanos = expirationNanos;
          long now = System.nanoTime();
          if (nanos == 0 || now - nanos >= 0) {
            synchronized (lock) {
              if (nanos == expirationNanos) { // recheck for lost race
                T t = delegate.get();
                value = t;
                nanos = now + durationNanos;
                // In the very unlikely event that nanos is 0, set it to 1;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        @Throws(InterruptedException::class)
        @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN")
        override fun coordinatorWait(
          taskRunner: TaskRunner,
          nanos: Long,
        ) {
          taskRunner.assertLockHeld()
          if (nanos > 0) {
            taskRunner.awaitNanos(nanos)
          }
        }
    
        override fun <T> decorate(queue: BlockingQueue<T>) = queue
    
        override fun execute(
          taskRunner: TaskRunner,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

            override fun coordinatorWait(
              taskRunner: TaskRunner,
              nanos: Long,
            ) {
              taskRunner.assertLockHeld()
              check(waitingCoordinatorTask == null)
              if (nanos == 0L) return
    
              // Yield until notified, interrupted, or the duration elapses.
              val waitUntil = nanoTime + nanos
              val self = currentTask
              waitingCoordinatorTask = self
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

           * if the timer expires, otherwise behaves like {@link #get()}.
           */
          V get(long nanos)
              throws TimeoutException, CancellationException, ExecutionException, InterruptedException {
    
            // Attempt to acquire the shared lock with a timeout.
            if (!tryAcquireSharedNanos(-1, nanos)) {
              throw new TimeoutException("Timeout waiting for task.");
            }
    
            return getValue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/Monitor.java

      /** Caller should check before calling that guard is not satisfied. */
      @GuardedBy("lock")
      private boolean awaitNanos(Guard guard, long nanos, boolean signalBeforeWaiting)
          throws InterruptedException {
        boolean firstTime = true;
        try {
          do {
            if (nanos <= 0L) {
              return false;
            }
            if (firstTime) {
              if (signalBeforeWaiting) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
        // Check that we wait long enough anyway (presumably as long as MAX_VALUE nanos):
        TimedWaiterThread waiter = new TimedWaiterThread(future, Long.MAX_VALUE, SECONDS);
        waiter.start();
        waiter.awaitWaiting();
    
        future.set(1);
        waiter.join();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  8. src/main/resources/fess_label_es.properties

    labels.facet_timestamp_1month=Último mes
    labels.facet_timestamp_1year=Último año
    labels.facet_timestamp_3month=Últimos 3 meses
    labels.facet_timestamp_6month=Últimos 6 meses
    labels.facet_timestamp_2year=Últimos 2 años
    labels.facet_timestamp_3year=Últimos 3 años
    labels.facet_contentLength_title=Tamaño
    labels.facet_contentLength_10k=&nbsp; - 10KB
    labels.facet_contentLength_10kto100k=10KB - 100KB
    labels.facet_contentLength_100kto500k=100KB - 500KB
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 04:56:21 UTC 2025
    - 45.4K bytes
    - Viewed (0)
  9. src/main/resources/fess_label_pt_BR.properties

    labels.facet_timestamp_1month=Último mês
    labels.facet_timestamp_1year=Último ano
    labels.facet_timestamp_3month=Últimos 3 meses
    labels.facet_timestamp_6month=Últimos 6 meses
    labels.facet_timestamp_2year=Últimos 2 anos
    labels.facet_timestamp_3year=Últimos 3 anos
    labels.facet_contentLength_title=Tamanho
    labels.facet_contentLength_10k=&nbsp; - 10KB
    labels.facet_contentLength_10kto100k=10KB - 100KB
    labels.facet_contentLength_100kto500k=100KB - 500KB
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 04:56:21 UTC 2025
    - 45.1K bytes
    - Viewed (0)
Back to top