Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 294 for threadId (0.05 sec)

  1. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

                        }
                    });
                }
    
                // Start all threads
                for (Thread t : threads) {
                    t.start();
                }
    
                // Wait for completion
                for (Thread t : threads) {
                    t.join();
                }
    
                // Verify thread safety - no unexpected exceptions
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

            for (int i = 0; i < threadCount; i++) {
                final int threadId = i;
                new Thread(() -> {
                    try {
                        WebApiUtil.setObject("key" + threadId, "value" + threadId);
                        WebApiUtil.getObject("key" + threadId);
                        WebApiUtil.setError(400 + threadId, "Error " + threadId);
                        WebApiUtil.validate();
                    } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

            // When - Multiple threads accessing trees concurrently
            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        startLatch.await(); // Wait for all threads to be ready
    
                        for (int i = 0; i < opsPerThread; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        for (int i = 0; i < opsPerThread; i++) {
                            byte[] data = String.format("Thread%d-Op%d", threadId, i).getBytes();
                            byte[] encrypted = context.encryptMessage(data, threadId * 100L + i);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                                }
                            }
                        }
                        long threadEnd = System.nanoTime();
                        totalTime.addAndGet(threadEnd - threadStart);
    
                    } catch (InterruptedException e) {
                        Thread.currentThread().interrupt();
                    } finally {
                        endLatch.countDown();
                    }
                });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

                    }
                });
                readThreads[i].start();
            }
    
            // Wait for all threads
            for (Thread thread : updateThreads) {
                thread.join(5000);
            }
            for (Thread thread : readThreads) {
                thread.join(5000);
            }
    
            // Verify final state
            assertEquals(100, entry.getChildren().size());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. 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)
  8. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            // Trip circuit
            circuitBreaker.trip();
            Thread.sleep(100);
    
            long afterTripTime = circuitBreaker.getTimeSinceLastStateChange();
            assertTrue(afterTripTime >= 100, "Time should have advanced");
            assertTrue(afterTripTime < 200, "Time should be reasonable");
    
            // Reset circuit
            circuitBreaker.reset();
            Thread.sleep(50);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SecureKeyManagerTest.java

            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
                        for (int i = 0; i < operationsPerThread; i++) {
                            String sid = "thread-" + threadId + "-key-" + i;
                            byte[] key = keyManager.generateRandomKey(16);
    
                            // Store key
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                    Arrays.fill(dataArrays[i], (byte) i);
    
                    threads[i] = new Thread(() -> {
                        digest.sign(dataArrays[index], 0, dataArrays[index].length, request, response);
                    });
                }
    
                for (Thread t : threads) {
                    t.start();
                }
                for (Thread t : threads) {
                    t.join();
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
Back to top