Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 385 for Done (0.14 sec)

  1. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        return new TrackedRunnable() {
          private volatile boolean done = false;
    
          @Override
          public boolean isDone() {
            return done;
          }
    
          @Override
          public void run() {
            try {
              delay(timeoutMillis);
              done = true;
            } catch (InterruptedException ok) {
            }
          }
        };
      }
    
    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)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          for (; ; ) {
            boolean done = true;
            for (int i = 0; i < aa.length(); i++) {
              double v = aa.get(i);
              assertTrue(v >= 0);
              if (v != 0) {
                done = false;
                if (aa.compareAndSet(i, v, v - 1.0)) {
                  ++counts;
                }
              }
            }
            if (done) {
              break;
            }
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/TraverserTest.java

        assertEqualCharNodes(Iterables.limit(result, 2), "ab");
        assertThat(graph.requestedNodes).containsExactly('a', 'a', 'b');
    
        // Iterate again to see if calculation is done again
        assertEqualCharNodes(Iterables.limit(result, 2), "ab");
        assertThat(graph.requestedNodes).containsExactly('a', 'a', 'a', 'b', 'b');
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          for (; ; ) {
            boolean done = true;
            for (int i = 0; i < aa.length(); i++) {
              double v = aa.get(i);
              assertTrue(v >= 0);
              if (v != 0) {
                done = false;
                if (aa.compareAndSet(i, v, v - 1.0)) {
                  ++counts;
                }
              }
            }
            if (done) {
              break;
            }
          }
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        public volatile boolean done = false;
    
        public void run() {
          try {
            delay(LONG_DELAY_MS);
            done = true;
          } catch (InterruptedException ok) {
          }
        }
      }
    
      public static class TrackedNoOpRunnable implements Runnable {
        public volatile boolean done = false;
    
        public void run() {
          done = true;
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

        @Override
        public void run() {}
      }
      // The thread executing the task publishes itself to the superclass' reference and the thread
      // interrupting sets DONE when it has finished interrupting.
      private static final Runnable DONE = new DoNothingRunnable();
      private static final Runnable PARKED = new DoNothingRunnable();
      // Why 1000?  WHY NOT!
      private static final int MAX_BUSY_WAIT_SPINS = 1000;
    
    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)
  7. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

        do {
          System.runFinalization();
          if (predicate.isDone()) {
            return;
          }
          CountDownLatch done = new CountDownLatch(1);
          createUnreachableLatchFinalizer(done);
          await(done);
          if (predicate.isDone()) {
            return;
          }
        } while (System.nanoTime() - deadline < 0);
        throw formatRuntimeException(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Collections2.java

       *
       * <p>Duplicate elements are considered equal. For example, the list [1, 1] will have only one
       * permutation, instead of two. This is why the elements have to implement {@link Comparable}.
       *
       * <p>An empty iterable has only one permutation, which is an empty list.
       *
       * <p>This method is equivalent to {@code Collections2.orderedPermutations(list,
       * Ordering.natural())}.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

              @Override
              public String pendingToString() {
                return "cause=[Because this test isn't done]";
              }
            };
        assertThat(testFuture.toString())
            .matches(
                "[^\\[]+\\[status=PENDING, info=\\[cause=\\[Because this test isn't done\\]\\]\\]");
        TimeoutException e =
            assertThrows(TimeoutException.class, () -> testFuture.get(1, TimeUnit.NANOSECONDS));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/GcFinalization.java

        do {
          System.runFinalization();
          if (predicate.isDone()) {
            return;
          }
          CountDownLatch done = new CountDownLatch(1);
          createUnreachableLatchFinalizer(done);
          await(done);
          if (predicate.isDone()) {
            return;
          }
        } while (System.nanoTime() - deadline < 0);
        throw formatRuntimeException(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
Back to top