Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 128 for currentThread (0.11 sec)

  1. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                        long threadEnd = System.nanoTime();
                        totalTime.addAndGet(threadEnd - threadStart);
    
                    } catch (InterruptedException e) {
                        Thread.currentThread().interrupt();
                    } finally {
                        endLatch.countDown();
                    }
                });
            }
    
            startLatch.countDown(); // Start all threads
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/audit/SecurityAuditLogger.java

            });
        }
    
        private void addMdcContext(Map<String, Object> context) {
            // Add MDC context efficiently
            context.put("thread", Thread.currentThread().getName());
            context.put("threadId", Thread.currentThread().getId());
    
            String sessionId = MDC.get("sessionId");
            if (sessionId != null) {
                context.put("sessionId", sessionId);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessClient.java

            CompletableFuture<Void> asyncTask = CompletableFuture.runAsync(() -> {
                byte[] contextHandle = registration.getContextHandle();
    
                while (!Thread.currentThread().isInterrupted() && registrations.containsKey(registrationId)
                        && registration.getState() == WitnessRegistrationState.REGISTERED) {
    
                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        String oldName = Thread.currentThread().getName();
        renamingExecutor.execute(
            new Runnable() {
              @Override
              public void run() {
                assertEquals("FooBar", Thread.currentThread().getName());
              }
            });
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      public void testExecutors_nullCheck() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

     * the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static java.lang.Thread.currentThread;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.annotations.VisibleForTesting;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbWatchHandleTest.java

                        try {
                            // Simulate some processing time
                            Thread.sleep(10);
                        } catch (InterruptedException e) {
                            Thread.currentThread().interrupt();
                        }
                        return Arrays.asList(createMockNotification("file" + watchCount + ".txt"));
                    }
                }
    
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

       * application successfully.
       *
       * <p>Example usage:
       *
       * <pre>
       * public static void main(String[] args) {
       *   Thread.currentThread().setUncaughtExceptionHandler(UncaughtExceptionHandlers.systemExit());
       *   ...
       * </pre>
       *
       * <p>The returned handler logs any exception at severity {@code SEVERE} and then shuts down the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 10 21:03:40 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

            long initialTime = channelInfo.getLastActivityTime();
    
            // Wait a bit and update activity
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
    
            channelInfo.updateActivity();
            assertTrue(channelInfo.getLastActivityTime() > initialTime);
            assertTrue(channelInfo.getIdleTime() >= 0);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

                        }
    
                        // In a real implementation, we would process actual change notifications here
    
                    } catch (InterruptedException e) {
                        Thread.currentThread().interrupt();
                        break;
                    } catch (Exception e) {
                        if (handle.isActive()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/unit/TestSystemProperties.java

                return null;
            }
        }
    
        private void loadTestProperties() {
            // Load system.properties from test classpath
            try (InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("system.properties")) {
                if (is != null) {
                    Properties props = new Properties();
                    props.load(is);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top