Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 806 for thead (0.02 sec)

  1. src/test/java/org/codelibs/fess/helper/WebFsIndexHelperTest.java

        }
    
        public void test_setIndexUpdaterPriority() {
            int priority = Thread.MAX_PRIORITY;
            webFsIndexHelper.setIndexUpdaterPriority(priority);
            assertEquals(priority, webFsIndexHelper.indexUpdaterPriority);
        }
    
        public void test_setIndexUpdaterPriority_withMinValue() {
            int priority = Thread.MIN_PRIORITY;
            webFsIndexHelper.setIndexUpdaterPriority(priority);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

            // Test thread safety with concurrent operations
            final int threadCount = 10;
            Thread[] threads = new Thread[threadCount];
            final boolean[] results = new boolean[threadCount];
    
            for (int i = 0; i < threadCount; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    String thumbnailId = "concurrent-" + index;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

          takeEvent()
        }
      }
    
      private fun logEvent(e: ConnectionEvent) {
        if (e.connection != null) {
          assertThat(Thread.holdsLock(e.connection), "Called with lock $${e.connection}")
            .isFalse()
        }
        for (lock in forbiddenLocks) {
          assertThat(Thread.holdsLock(lock), "Called with lock $lock")
            .isFalse()
        }
    
        if (enforceOrder) {
          checkForStartEvent(e)
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

      /**
       * Returns an exception handler that exits the system. This is particularly useful for the main
       * thread, which may start up other, non-daemon threads, but fail to fully initialize the
       * application successfully.
       *
       * <p>Example usage:
       *
       * <pre>
       * public static void main(String[] args) {
       *   Thread.currentThread().setUncaughtExceptionHandler(UncaughtExceptionHandlers.systemExit());
       *   ...
       * </pre>
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 10 21:03:40 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/LogStreamTest.java

        void testConcurrentAccess() throws InterruptedException {
            // Test thread safety of getInstance
            LogStream.setInstance(testStream);
    
            final LogStream[] instances = new LogStream[10];
            Thread[] threads = new Thread[10];
    
            for (int i = 0; i < threads.length; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    instances[index] = LogStream.getInstance();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

            // Test thread safety
            final int threadCount = 10;
            final int docsPerThread = 10;
            final List<Thread> threads = new ArrayList<>();
            final AtomicInteger successCount = new AtomicInteger(0);
    
            for (int i = 0; i < threadCount; i++) {
                final int threadId = i;
                Thread thread = new Thread(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                }
    
                // When
                for (Thread thread : threads) {
                    thread.start();
                }
                for (Thread thread : threads) {
                    thread.join();
                }
    
                // Then
                for (int i = 0; i < threadCount; i++) {
                    assertTrue(success[i], "Thread " + i + " failed");
                }
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

              @Override
              public void run() {
                list.execute();
              }
            };
        Thread thread1 = new Thread(execute);
        Thread thread2 = new Thread(execute);
        thread1.start();
        thread2.start();
        assertEquals(0, runCalled.get());
        okayToRun.countDown();
        thread1.join();
        thread2.join();
        assertEquals(1, runCalled.get());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/EmptyIteratorTest.java

                    threads[i].start();
                }
    
                // Wait for all threads to complete
                for (Thread thread : threads) {
                    thread.join();
                }
            }
    
            // Then
            for (int i = 0; i < threadCount; i++) {
                assertTrue(results[i], "Thread " + i + " should have completed successfully");
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

    @J2ktIncompatible
    @GwtIncompatible
    public final class JdkFutureAdapters {
      /**
       * Assigns a thread to the given {@link Future} to provide {@link ListenableFuture} functionality.
       *
       * <p><b>Warning:</b> If the input future does not already implement {@code ListenableFuture}, the
       * returned future will emulate {@link ListenableFuture#addListener} by taking a thread from an
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top