- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 692 for threadId (0.05 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
} @Test public void testThreadSafety() throws InterruptedException { // Test concurrent updates from multiple threads Thread[] threads = new Thread[10]; for (int i = 0; i < threads.length; i++) { final int index = i; threads[i] = new Thread(() -> { for (int j = 0; j < 100; j++) { String name = "file" + index + "_" + j + ".txt";Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/MoreExecutors.java
} /** * Add a shutdown hook to wait for thread completion in the given {@link ExecutorService service}. * This is useful if the given service uses daemon threads, and we want to keep the JVM from * exiting immediately on shutdown, instead giving these daemon threads a chance to terminate * normally. * * @param service ExecutorService which uses daemon threadsRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 45.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Nov 19 08:59:28 UTC 2025 - 11.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java
* * @return the {@link CrawlerContext} for the current thread, or {@code null} if no context is set. */ public static CrawlerContext getCrawlerContext() { return CRAWLER_CONTEXT_THREAD_LOCAL.get(); } /** * Sets the current {@link CrawlerContext} for the current thread. * If the provided {@code crawlerContext} is {@code null}, the context is removed from the thread-local storage.Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 6.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
* intentionally, so there is no other way to clean up these threads. (The better solution, * though, would be to run the tests that use TestThread in separate VMs so that their threads * don't hang around during other tests.) */ @Override public void tearDown() throws Exception { try { Thread.class.getMethod("stop").invoke(this); join();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 11.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
* intentionally, so there is no other way to clean up these threads. (The better solution, * though, would be to run the tests that use TestThread in separate VMs so that their threads * don't hang around during other tests.) */ @Override public void tearDown() throws Exception { try { Thread.class.getMethod("stop").invoke(this); join();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 11.4K bytes - Viewed (0) -
CLAUDE.md
volatile CrawlerStatus status // DONE, RUNNING AtomicLong accessCount // Thread-safe counter int numOfThread = 10 // Crawler threads int maxDepth = -1 // Max depth (-1 = unlimited) long maxAccessCount = 0 // Max URLs (0 = unlimited) ``` ### CrawlerThread (`CrawlerThread.java`) Worker thread for crawling.
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Fri Nov 28 17:31:34 UTC 2025 - 10.7K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java
/** * Simple {@link ThreadFactory} implementation that ensures the corresponding threads have a meaningful name. */ public class BuildThreadFactory implements ThreadFactory { private final AtomicInteger id = new AtomicInteger(); private static final String PREFIX = "BuilderThread"; @Override public Thread newThread(Runnable r) { return new Thread(r, String.format("%s-%d", PREFIX, id.getAndIncrement())); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0)