- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 776 for sock (0.02 sec)
-
android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java
} /* * This is an unsynchronized read! After the read, the function returns immediately or acquires * the lock to check again. Since an IDLE state was observed inside the preceding synchronized * block, and reference field assignment is atomic, this may save reacquiring the lock when * another thread or the worker task has cleared the count and set the state. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/LazyLogger.java
import java.util.logging.Logger; import org.jspecify.annotations.Nullable; /** A holder for a {@link Logger} that is initialized only when requested. */ @GwtCompatible final class LazyLogger { private final Object lock = new Object(); private final String loggerName; private volatile @Nullable Logger logger; LazyLogger(Class<?> ownerOfLogger) { this.loggerName = ownerOfLogger.getName(); } Logger get() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for the {@link AllocInfo} interface. * Since {@code AllocInfo} only declares getters, the tests focus on * verifying that implementations honour the contract. */ @ExtendWith(MockitoExtension.class) public class AllocInfoTest { @Mock AllocInfo mockAllocInfo; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TransCallNamedPipeResponse.java
if (pipe.pipeIn != null) { final TransactNamedPipeInputStream in = (TransactNamedPipeInputStream) pipe.pipeIn; synchronized (in.lock) { in.receive(buffer, bufferIndex, len); in.lock.notify(); } } return len; } @Override public String toString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.1K bytes - Viewed (0) -
tensorflow/c/c_api_internal.h
} #if !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD) tensorflow::ApiDefMap api_def_map TF_GUARDED_BY(lock); #endif // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD) bool update_docs_called TF_GUARDED_BY(lock); tensorflow::mutex lock; }; #if !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD) struct TF_Server {
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Sat May 13 00:49:12 UTC 2023 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryTest.java
import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import org.mockito.InOrder; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class FileEntryTest { @Mock FileEntry mockEntry; // Simple fake implementation to exercise the interface without mocks
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
private Smb2TreeConnectRequest request; private static final String TEST_PATH = "\\\\server\\share"; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig); request = new Smb2TreeConnectRequest(mockConfig, TEST_PATH); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import org.junit.jupiter.api.Test; import jcifs.Configuration; class AvSingleHostTest { /** * Test constructor AvSingleHost(byte[] raw).
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.SmbTransport; import jcifs.internal.CommonServerMessageBlock; /** * Unit tests for ChannelInfo */ @ExtendWith(MockitoExtension.class) class ChannelInfoTest { @Mock private SmbTransport mockTransport; @Mock private CommonServerMessageBlock mockOperation;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt
* limitations under the License. */ package okhttp3.containers import assertk.assertThat import assertk.assertions.contains import java.net.InetSocketAddress import java.net.Proxy import java.net.Proxy.Type.SOCKS import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.containers.BasicMockServerTest.Companion.MOCKSERVER_IMAGE import org.junit.jupiter.api.Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.6K bytes - Viewed (0)