- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 688 for Thread (0.05 sec)
-
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
Smb2LeaseKey key1 = limitedManager.requestLease("/share/file1.txt", Smb2LeaseState.SMB2_LEASE_READ_CACHING); Thread.sleep(5); // Small delay to ensure different timestamps Smb2LeaseKey key2 = limitedManager.requestLease("/share/file2.txt", Smb2LeaseState.SMB2_LEASE_READ_CACHING); Thread.sleep(5); // Small delay to ensure different timestamps
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt
} } @Test fun threadIsInterruptedOnFirstRead() { Thread.currentThread().interrupt() try { val result = publicSuffixDatabase.getEffectiveTldPlusOne("squareup.com") assertThat(result).isEqualTo("squareup.com") } finally { assertThat(Thread.interrupted()).isTrue() } } @Test fun secondReadFailsSameAsFirst() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 22:00:49 UTC 2025 - 8.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt
} private fun makeSynchronousCall(call: Call): Thread { val thread = Thread { try { call.execute() throw AssertionError() } catch (expected: IOException) { } } thread.start() return thread } private fun newRequest(url: String): Request = Request.Builder().url(url).build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java
: Math.min(MAX_RETRY_DELAY, retryDelayMs * multiplier); Thread.sleep(delay); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new IOException("Interrupted during retry delay", e); } } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/MockWitnessService.java
private final AtomicInteger registrationCounter = new AtomicInteger(0); private final ConcurrentHashMap<String, MockRegistration> registrations = new ConcurrentHashMap<>(); private Thread serverThread; /** * Mock registration data */ private static class MockRegistration { final String registrationId; final String shareName; final String serverAddress;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 8.2K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/CustomDispatcherTest.kt
// (Still done). assertThat(secondResponseCode.get()).isEqualTo(200) } private fun buildRequestThread( path: String, responseCode: AtomicInteger, ): Thread = Thread { val url = mockWebServer.url(path).toUrl() val conn: HttpURLConnection try { conn = url.openConnection() as HttpURLConnection
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 3.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestPlatform.java
} catch (ExecutionException e) { throw new AssertionError(e); } } static void verifyThreadWasNotInterrupted() { assertFalse(Thread.currentThread().isInterrupted()); } static void clearInterrupt() { Thread.interrupted(); } /** * Retrieves the result of a {@code Future} known to be done but uses the {@code get(long, * TimeUnit)} overload in order to test that method.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
prev = x; } } } /** compareAndSet in one thread enables another waiting for value to succeed */ public void testCompareAndSetInMultipleThreads() throws InterruptedException { AtomicDoubleArray a = new AtomicDoubleArray(1); a.set(0, 1.0); Thread t = newStartedThread( new CheckedRunnable() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerTest.kt
// Enqueueing the red task starts a thread because the head of the queue changed. redQueue.execute("red task") { log += "red:starting@${taskFaker.nanoTime}" taskFaker.sleep(100.µs) log += "red:finishing@${taskFaker.nanoTime}" } assertThat(taskFaker.executeCallCount).isEqualTo(1) // Enqueueing the blue task doesn't start a thread because the red one is still starting.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 23K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java
* <pre> * {@code * String escapedXml = XmlUtil.escapeXml("<tag>value</tag>"); * Map<String, Object> dataMap = XmlUtil.getDataMap(accessResultData); * } * </pre> * * <h2>Thread Safety:</h2> * <p> * This class is thread-safe as it does not maintain any state. * </p> * * <h2>Dependencies:</h2> * <ul> * <li>org.apache.logging.log4j.Logger</li> * <li>org.apache.logging.log4j.LogManager</li>
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 9.4K bytes - Viewed (0)