Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CyclicBarrier (0.12 sec)

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

       */
    
      public void testFutureBash() {
        if (isWindows()) {
          return; // TODO: b/136041958 - Running very slowly on Windows CI.
        }
        CyclicBarrier barrier =
            new CyclicBarrier(
                6 // for the setter threads
                    + 50 // for the listeners
                    + 50 // for the blocking get threads,
                    + 1); // for the main thread
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

       * sees an Error?
       */
      @AndroidIncompatible
      public void testTaskThrowsError() throws Exception {
        class MyError extends Error {}
        CyclicBarrier barrier = new CyclicBarrier(2);
        // we need to make sure the error gets thrown on a different thread.
        ExecutorService service = newSingleThreadExecutor();
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

                    @Override
                    public Integer call() {
                      return counter.incrementAndGet();
                    }
                  });
          CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
          Runnable wrapper =
              new Runnable() {
                @Override
                public void run() {
                  awaitUnchecked(barrier);
                  task.run();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

                s1,
                s2 // subscribers have finished.
                )
            .inOrder();
      }
    
      public void testLegacyAsyncDispatcher() {
        dispatcher = Dispatcher.legacyAsync();
    
        CyclicBarrier barrier = new CyclicBarrier(2);
        CountDownLatch latch = new CountDownLatch(2);
    
        new Thread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

       */
    
      public void testFutureBash() {
        if (isWindows()) {
          return; // TODO: b/136041958 - Running very slowly on Windows CI.
        }
        CyclicBarrier barrier =
            new CyclicBarrier(
                6 // for the setter threads
                    + 50 // for the listeners
                    + 50 // for the blocking get threads,
                    + 1); // for the main thread
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        assertEquals(10, threadLocalCount.get().intValue());
      }
    
      public void testDirectExecutorServiceServiceTermination() throws Exception {
        ExecutorService executor = newDirectExecutorService();
        CyclicBarrier barrier = new CyclicBarrier(2);
        AtomicReference<Throwable> throwableFromOtherThread = new AtomicReference<>(null);
        Runnable doNothingRunnable =
            new Runnable() {
              @Override
              public void run() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        addEdge(1, 2, "foo");
        addEdge(3, 4, "bar");
        addEdge(5, 6, "baz");
    
        int threadCount = 20;
        ExecutorService executor = newFixedThreadPool(threadCount);
        CyclicBarrier barrier = new CyclicBarrier(threadCount);
        ImmutableList.Builder<Future<?>> futures = ImmutableList.builder();
        for (int i = 0; i < threadCount; i++) {
          futures.add(
              executor.submit(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top