- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 688 for Thread (0.06 sec)
-
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) -
src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/SmbTransportPoolTest.java
// When - simulate concurrent requests Thread thread1 = new Thread(() -> transportPool.getSmbTransport(context, address, DEFAULT_PORT, false)); Thread thread2 = new Thread(() -> transportPool.getSmbTransport(context, address, DEFAULT_PORT, true)); thread1.start(); thread2.start(); thread1.join(); thread2.join(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java
} return; } /* * This is an unsynchronized read! After the read, the function returns immediately or acquires * the lock to check again. Since an IDLE state was observed inside the preceding synchronized * block, and reference field assignment is atomic, this may save reacquiring the lock when * another thread or the worker task has cleared the count and set the state. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java
@Override public boolean offer(E o) { assertTrue(Thread.holdsLock(mutex)); return delegate.offer(o); } @Override public @Nullable E poll() { assertTrue(Thread.holdsLock(mutex)); return delegate.poll(); } @Override public E remove() { assertTrue(Thread.holdsLock(mutex)); return delegate.remove(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 7.4K bytes - Viewed (0) -
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"); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/audit/SecurityAuditLoggerTest.java
void testConcurrentLogging() throws InterruptedException { int threadCount = 10; int eventsPerThread = 100; Thread[] threads = new Thread[threadCount]; for (int i = 0; i < threadCount; i++) { final int threadId = i; threads[i] = new Thread(() -> { for (int j = 0; j < eventsPerThread; j++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
} catch (InterruptedException e) { Thread.currentThread().interrupt(); } finally { endLatch.countDown(); } }); } startLatch.countDown(); // Start all threads assertTrue(endLatch.await(30, TimeUnit.SECONDS), "All threads should complete within timeout"); executor.shutdown();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0)