- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 262 for synchronize (0.06 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
address: Address, connectionUser: ConnectionUser, routes: List<Route>?, requireMultiplexed: Boolean, ): RealConnection? { for (connection in connections) { // In the first synchronized block, acquire the connection if it can satisfy this call. val acquired = connection.withLock { when { requireMultiplexed && !connection.isMultiplexed -> false
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jun 03 17:10:08 UTC 2025 - 16.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt
val totalExceptionBytes = bufferedSource.readInt() publicSuffixExceptionListBytes = bufferedSource.readByteString(totalExceptionBytes.toLong()) } synchronized(this) { this.bytes = publicSuffixListBytes!! this.exceptionBytes = publicSuffixExceptionListBytes!! } } finally { readCompleteLatch.countDown() } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
boolean contains = pool.contains(null); // Should handle gracefully successCount.incrementAndGet(); } catch (Exception e) { synchronized (exceptions) { exceptions.add(e); } } } long threadEnd = System.nanoTime();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java
// Test thread safety of fillInStackTrace method UserRoleLoginException exception = new UserRoleLoginException(RootAction.class); // Create multiple threads to test synchronized method Thread thread1 = new Thread(() -> { Throwable result = exception.fillInStackTrace(); assertNull(result); }); Thread thread2 = new Thread(() -> {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
} private static class TestApplication extends Application { private final List<Thread> hooks = new ArrayList<>(); @Override synchronized void addShutdownHook(Thread hook) { hooks.add(hook); } synchronized void shutdown() throws InterruptedException { for (Thread hook : hooks) { hook.start(); } for (Thread hook : hooks) { hook.join();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 28K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
BufferCache.releaseBuffer(buffer); successCount.incrementAndGet(); } } catch (Exception e) { synchronized (exceptions) { exceptions.add(e); } } finally { endLatch.countDown(); } }); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
TearDownStack result = new TearDownStack(); tearDownStack.addTearDown( new TearDown() { @Override public void tearDown() throws Exception { synchronized (result.lock) { assertEquals( "The test should have cleared the stack (say, by virtue of running runTearDown)", 0, result.stack.size());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java
protected abstract FileEntry[] getResults(); /** * Closes the enumeration and releases resources. * * @throws CIFSException if an error occurs during closing */ protected synchronized void doClose() throws CIFSException { // otherwise already closed if (!this.closed) { this.closed = true; try { doCloseInternal(); } finally {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.7K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
synchronized (result) { result.addMissingArtifact(artifact); } } catch (ArtifactResolutionException e) { // This is really a wagon TransferFailedException so something went wrong after we successfully // retrieved the metadata. synchronized (result) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 25K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
private static class IOExceptionOccurProperties extends Properties { /** * */ private static final long serialVersionUID = 1L; @Override public synchronized void load(final InputStream inStream) throws IOException { throw new IOException("load"); } } /** * {@link org.codelibs.core.io.PropertiesUtil#load(Properties, String)}
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 9.6K bytes - Viewed (0)