Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 232 for nThreads (0.57 seconds)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

                            }
                        }
                    }
                });
            }
    
            // Start all threads
            for (Thread thread : threads) {
                thread.start();
            }
    
            // Wait for all threads to complete
            for (Thread thread : threads) {
                thread.join();
            }
    
            // Verify no exceptions
            assertTrue(exceptions.isEmpty());
        }
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java

                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<String> threads() {
            if (commandLine.hasOption(CLIManager.THREADS)) {
                return Optional.of(commandLine.getOptionValue(CLIManager.THREADS));
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<String> builder() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 17:39:57 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        ExecutionException e = assertThrows(ExecutionException.class, () -> future.get());
        assertThat(e).hasCauseThat().isSameInstanceAs(expected);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming() throws Exception {
        String oldName = Thread.currentThread().getName();
        Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/cache/LongAdder.java

     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
     * reduce contention. Method {@link #sum} (or, equivalently, {@link #longValue}) returns the current
     * total combined across the variables maintaining the sum.
     *
     * <p>This class is usually preferable to {@link AtomicLong} when multiple threads update a common
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

            byte[] buffer = new byte[1000];
            int numThreads = 10;
            Thread[] threads = new Thread[numThreads];
    
            // When - multiple threads calling methods simultaneously
            for (int i = 0; i < numThreads; i++) {
                final int threadIndex = i;
                threads[i] = new Thread(() -> {
                    for (int j = 0; j < 100; j++) {
                        int offset = threadIndex * 10;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/LayeredMavenOptions.java

        public Optional<Boolean> alsoMakeDependents() {
            return returnFirstPresentOrEmpty(MavenOptions::alsoMakeDependents);
        }
    
        @Override
        public Optional<String> threads() {
            return returnFirstPresentOrEmpty(MavenOptions::threads);
        }
    
        @Override
        public Optional<String> builder() {
            return returnFirstPresentOrEmpty(MavenOptions::builder);
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                    } finally {
                        endLatch.countDown();
                    }
                });
            }
    
            // Start all threads
            startLatch.countDown();
    
            // Wait for completion
            assertTrue(endLatch.await(30, TimeUnit.SECONDS), "All threads should complete");
            executor.shutdown();
    
            // Then - All operations should succeed
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java

    package org.apache.maven.lifecycle.internal;
    
    import java.util.concurrent.ThreadFactory;
    import java.util.concurrent.atomic.AtomicInteger;
    
    /**
     * Simple {@link ThreadFactory} implementation that ensures the corresponding threads have a meaningful name.
     */
    public class BuildThreadFactory implements ThreadFactory {
        private final AtomicInteger id = new AtomicInteger();
    
        private static final String PREFIX = "BuilderThread";
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/job/GenerateThumbnailJob.java

         */
        public GenerateThumbnailJob() {
            super();
        }
    
        /**
         * Sets the number of threads to use for thumbnail generation.
         *
         * @param numOfThreads the number of threads
         * @return this job instance for method chaining
         */
        public GenerateThumbnailJob numOfThreads(final int numOfThreads) {
            this.numOfThreads = numOfThreads;
            return this;
        }
    
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java

                            }
                        }
                    }
                });
            }
    
            // Start all threads
            for (Thread thread : threads) {
                thread.start();
            }
    
            // Wait for all threads
            for (Thread thread : threads) {
                thread.join();
            }
    
            // Verify results
            assertTrue(exceptions.isEmpty());
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Wed Sep 03 14:42:53 GMT 2025
    - 22.7K bytes
    - Click Count (0)
Back to Top