Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for newFixedThreadPool (0.24 sec)

  1. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

    import static com.google.common.graph.TestUtil.sanityCheckSet;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.TruthJUnit.assume;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static org.junit.Assert.assertFalse;
    import static org.junit.Assert.assertThrows;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

    import static com.google.common.graph.TestUtil.sanityCheckSet;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.TruthJUnit.assume;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static org.junit.Assert.assertFalse;
    import static org.junit.Assert.assertThrows;
    import static org.junit.Assert.assertTrue;
    import static org.junit.Assert.fail;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * is complete. It does so by using daemon threads and adding a shutdown hook to wait for their
       * completion.
       *
       * <p>This is mainly for fixed thread pools. See {@link Executors#newFixedThreadPool(int)}.
       *
       * @param executor the executor to modify to make sure it exits when the application is finished
       * @param terminationTimeout how long to wait for the executor to finish before terminating the
       *     JVM
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        final ArrayList<ListenableFuture<Integer>> lengthChecks = new ArrayList<>();
        final List<Integer> completeLengthChecks;
        final int baseStackDepth;
        ExecutorService service = Executors.newFixedThreadPool(5);
        try {
          // Avoid counting frames from the executor itself, or the ExecutionSequencer
          baseStackDepth =
              serializer
                  .submit(
                      new Callable<Integer>() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        final ArrayList<ListenableFuture<Integer>> lengthChecks = new ArrayList<>();
        final List<Integer> completeLengthChecks;
        final int baseStackDepth;
        ExecutorService service = Executors.newFixedThreadPool(5);
        try {
          // Avoid counting frames from the executor itself, or the ExecutionSequencer
          baseStackDepth =
              serializer
                  .submit(
                      new Callable<Integer>() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 16.8K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        ImmutableList.Builder<Integer> builder = ImmutableList.builder();
        for (int i = 0; i < size; i++) {
          builder.add(i);
        }
        keys = builder.build();
        threadPool =
            Executors.newFixedThreadPool(threads, new ThreadFactoryBuilder().setDaemon(true).build());
      }
    
      @Benchmark
      long add(final int reps) throws ExecutionException, InterruptedException {
        return doMultithreadedLoop(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
Back to top