Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for Pairing (2.82 sec)

  1. guava-tests/test/com/google/common/base/SuppliersTest.java

            new Supplier<Boolean>() {
              boolean isWaiting(Thread thread) {
                switch (thread.getState()) {
                  case BLOCKED:
                  case WAITING:
                  case TIMED_WAITING:
                    return true;
                  default:
                    return false;
                }
              }
    
              int waitingThreads() {
                int waitingThreads = 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/SuppliersTest.java

            new Supplier<Boolean>() {
              boolean isWaiting(Thread thread) {
                switch (thread.getState()) {
                  case BLOCKED:
                  case WAITING:
                  case TIMED_WAITING:
                    return true;
                  default:
                    return false;
                }
              }
    
              int waitingThreads() {
                int waitingThreads = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        latch = new CountDownLatch(1);
        future = createListenableFuture(Boolean.TRUE, null, latch);
      }
    
      @Override
      protected void tearDown() throws Exception {
    
        // Make sure we have no waiting threads.
        latch.countDown();
      }
    
      /** Constructs a listenable future with a value available after the latch has counted down. */
      protected abstract <V> ListenableFuture<V> createListenableFuture(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 18:30:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * @since 3.0
     */
    // TODO The configuration for the lifecycle needs to be externalized so that I can use the annotations properly for the
    // wiring and reference and external source for the lifecycle configuration.
    @Named
    @Singleton
    public class DefaultLifecycles {
        public static final String[] STANDARD_LIFECYCLES = {"clean", "default", "site", "wrapper"};
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

          if (compareAndSet(currentRunner, blocker)) {
            // Thread.interrupt can throw arbitrary exceptions due to the nio InterruptibleChannel API
            // This will make sure that tasks don't get stuck busy waiting.
            // Some of this is fixed in jdk11 (see https://bugs.openjdk.java.net/browse/JDK-8198692) but
            // not all.  See the test cases for examples on how this can happen.
            try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/QueuesTest.java

        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
        Future<?> possiblyIgnoredError = threadPool.submit(new Interrupter(currentThread()));
        try {
          // if waiting works, this should get stuck
          Queues.drain(q, newArrayList(), 1, MAX_VALUE, NANOSECONDS);
          fail();
        } catch (InterruptedException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/IntMath.java

       * time.
       *
       * <p>Compare {@link #checkedPow}, which throws an {@link ArithmeticException} upon overflow.
       *
       * @throws IllegalArgumentException if {@code k < 0}
       */
      @GwtIncompatible // failing tests
      public static int pow(int b, int k) {
        checkNonNegative("exponent", k);
        switch (b) {
          case 0:
            return (k == 0) ? 1 : 0;
          case 1:
            return 1;
          case (-1):
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

        }
    
        @Test
        void testMailingListsAreInheritedButNotAggregated() throws Exception {
            PomTestWrapper pom = buildPom("mailing-lists-inheritance/child-2");
            assertEquals(1, ((List<?>) pom.getValue("mailingLists")).size());
            assertEquals("child-mailing-list", pom.getValue("mailingLists[1]/name"));
        }
    
        @Test
        void testPluginInheritanceOrder() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 93.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       * state: BLOCKED, WAITING, or TIMED_WAITING.
       */
      void waitForThreadToEnterWaitState(Thread thread, long timeoutMillis) {
        long startTime = System.nanoTime();
        for (; ; ) {
          Thread.State s = thread.getState();
          if (s == Thread.State.BLOCKED || s == Thread.State.WAITING || s == Thread.State.TIMED_WAITING)
            return;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("b", consumingIterator.next());
        assertThat(list).isEmpty();
    
        assertFalse(consumingIterator.hasNext());
      }
    
      @GwtIncompatible // ?
      // TODO: Figure out why this is failing in GWT.
      public void testConsumingIterable_duelingIterators() {
        // Test data
        List<String> list = Lists.newArrayList(asList("a", "b"));
    
        // Test & Verify
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
Back to top