Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 97 for CountDownLatch (0.23 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

         */
        public void test_concurrentPropertyAccess() throws Exception {
            final int threadCount = 10;
            final int iterationsPerThread = 100;
            final CountDownLatch startLatch = new CountDownLatch(1);
            final CountDownLatch endLatch = new CountDownLatch(threadCount);
            final AtomicInteger errorCount = new AtomicInteger(0);
    
            // Set initial values
            testRule.setRuleId("concurrentRule");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

            suggestHelper.storeAllElevateWords(true);
    
            final AtomicInteger exitCode = new AtomicInteger(0);
    
            if (ComponentUtil.getFessConfig().isSuggestDocuments()) {
                final CountDownLatch latch = new CountDownLatch(1);
    
                logger.info("Parsing words from indexed documents.");
                suggestHelper.indexFromDocuments(ret -> {
                    logger.info("Success indexing from documents.");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

        } catch (e: InterruptedException) {
          Thread.currentThread().interrupt()
        }
      }
    
      private fun cancelLater(
        call: Call,
        delayMillis: Int,
      ): CountDownLatch {
        val latch = CountDownLatch(1)
        Thread {
          sleep(delayMillis)
          if (cancelMode == CANCEL) {
            call.cancel()
          } else {
            threadToCancel!!.interrupt()
          }
          latch.countDown()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

          barrier.await(1, SECONDS);
        } finally {
          service.shutdown();
        }
      }
    
      public void testRejectedExecutionThrownWithMultipleCalls() throws Exception {
        CountDownLatch latch = new CountDownLatch(1);
        SettableFuture<?> future = SettableFuture.create();
        Executor delegate =
            new Executor() {
              @Override
              public void execute(Runnable task) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

                    ist.interrupt();
                } catch (final Exception e) {
                    logger.warn("Could not interrupt a thread of an input stream.", e);
                }
    
                final CountDownLatch latch = new CountDownLatch(3);
                final Process process = jobProcess.getProcess();
                new Thread(() -> {
                    try {
                        CloseableUtil.closeQuietly(process.getInputStream());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        public String toString() {
          return name;
        }
      }
    
      static final class Waiter {
        private final CountDownLatch started = new CountDownLatch(1);
        private final CountDownLatch canReturn = new CountDownLatch(1);
        private final CountDownLatch returned = new CountDownLatch(1);
        private Object proxy;
    
        @SuppressWarnings("unchecked") // proxy for a generic class
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

              public void run() {}
            };
        service.execute(task);
        verify(delegate).execute(task);
      }
    
      public void testListeningDecorator_scheduleSuccess() throws Exception {
        CountDownLatch completed = new CountDownLatch(1);
        ScheduledThreadPoolExecutor delegate =
            new ScheduledThreadPoolExecutor(1) {
              @Override
              protected void afterExecute(Runnable r, Throwable t) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/SecureKeyManagerTest.java

        }
    
        @Test
        public void testConcurrentKeyOperations() throws InterruptedException {
            int threadCount = 10;
            int operationsPerThread = 50;
            CountDownLatch latch = new CountDownLatch(threadCount);
            AtomicInteger successCount = new AtomicInteger(0);
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    
            for (int t = 0; t < threadCount; t++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SmbSessionTest.java

                Configuration mockConfig = mock(Configuration.class);
                when(mockSession.getConfig()).thenReturn(mockConfig);
    
                java.util.concurrent.CountDownLatch latch = new java.util.concurrent.CountDownLatch(5);
                java.util.concurrent.atomic.AtomicInteger successCount = new java.util.concurrent.atomic.AtomicInteger(0);
    
                for (int i = 0; i < 5; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

     * limitations under the License.
     */
    package okhttp3.dnsoverhttps
    
    import java.io.IOException
    import java.net.InetAddress
    import java.net.UnknownHostException
    import java.util.concurrent.CountDownLatch
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.Dns
    import okhttp3.HttpUrl
    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top