Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for wait (0.19 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          thread.start();
          // we want to wait until each thread is WAITING - one thread waiting inside CacheLoader.load
          // (in startSignal.await()), and the others waiting for that thread's result.
          while (thread.isAlive() && thread.getState() != Thread.State.WAITING) {
            Thread.yield();
          }
        }
        gettersStartedSignal.countDown();
        gettersComplete.await();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

                  if (remainingNanos < SPIN_THRESHOLD_NANOS) {
                    // Remove the waiter, one way or another we are done parking this thread.
                    removeWaiter(node);
                    break long_wait_loop; // jump down to the busy wait loop
                  }
                }
              }
              oldHead = waiters; // re-read and loop.
            } while (oldHead != Waiter.TOMBSTONE);
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          thread.start();
          // we want to wait until each thread is WAITING - one thread waiting inside CacheLoader.load
          // (in startSignal.await()), and the others waiting for that thread's result.
          while (thread.isAlive() && thread.getState() != Thread.State.WAITING) {
            Thread.yield();
          }
        }
        gettersStartedSignal.countDown();
        gettersComplete.await();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      }
    
      /**
       * Marks the given step final, waits for it to be finished, and returns the value.
       *
       * @throws ExecutionException if the step failed
       * @throws CancellationException if the step was cancelled
       */
      abstract <T> T getFinalValue(ClosingFuture<T> closingFuture) throws ExecutionException;
    
      /** Marks the given step final, cancels it, and waits for the cancellation to happen. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/CharMatcher.java

        return predicate instanceof CharMatcher ? (CharMatcher) predicate : new ForPredicate(predicate);
      }
    
      // Constructors
    
      /**
       * Constructor for use by subclasses. When subclassing, you may want to override {@code
       * toString()} to provide a useful description.
       */
      protected CharMatcher() {}
    
      // Abstract methods
    
      /** Determines a true or false value for the given character. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

      /**
       * Returns a new hash set using the smallest initial table size that can hold {@code expectedSize}
       * elements without resizing. Note that this is not what {@link HashSet#HashSet(int)} does, but it
       * is what most users want and expect it to do.
       *
       * <p>This behavior can't be broadly guaranteed, but has been tested with OpenJDK 1.7 and 1.8.
       *
       * @param expectedSize the number of elements you expect to add to the returned set
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      }
    
      /**
       * Marks the given step final, waits for it to be finished, and returns the value.
       *
       * @throws ExecutionException if the step failed
       * @throws CancellationException if the step was cancelled
       */
      abstract <T> T getFinalValue(ClosingFuture<T> closingFuture) throws ExecutionException;
    
      /** Marks the given step final, cancels it, and waits for the cancellation to happen. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/CacheBuilder.java

     * href="https://www.javadoc.io/doc/com.github.ben-manes.caffeine/caffeine/latest/com.github.benmanes.caffeine/com/github/benmanes/caffeine/cache/AsyncLoadingCache.html">their
     * deep support for asynchronous operations</a>. But if you want to migrate to Caffeine with minimal
     * code changes, you can use <a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
Back to top