- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 940 for sock (0.04 seconds)
-
internal/dsync/drwmutex.go
} } // Lock holds a write lock on dm. // // If the lock is already in use, the calling go routine // blocks until the mutex is available. func (dm *DRWMutex) Lock(id, source string) { isReadLock := false dm.lockBlocking(context.Background(), nil, id, source, isReadLock, Options{ Timeout: drwMutexInfinite, }) } // Options lock options. type Options struct {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 20.3K bytes - Click Count (0) -
cmd/local-locker.go
Source string // Contains line, function and filename requesting the lock. Group bool // indicates if it was a group lock. Owner string // Owner represents the UUID of the owner who originally requested the lock. Quorum int // Quorum represents the quorum required for this lock to be active. idx int `msg:"-"` // index of the lock in the lockMap. }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 12K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 11.4K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
* always under a lock. */ private static final class SupplantableFuture implements Cancellable { private final ReentrantLock lock; @GuardedBy("lock") private Future<@Nullable Void> currentFuture; SupplantableFuture(ReentrantLock lock, Future<@Nullable Void> currentFuture) { this.lock = lock; this.currentFuture = currentFuture; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 27.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
*/ class NotifyResponseTest { @Mock private Configuration mockConfig; @Mock private FileNotifyInformation mockNotifyInfo1; @Mock private FileNotifyInformation mockNotifyInfo2; @Mock private CommonServerMessageBlockRequest mockRequest; /** * Mock implementation of NotifyResponse for testing interface behavior */Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0) -
cmd/local-locker_test.go
} toUnLock = toUnLock[:0] for k, v := range l.lockMap { for _, lock := range v { toUnLock = append(toUnLock, dsync.LockArgs{Resources: []string{k}, UID: lock.UID, Owner: lock.Owner}) } } start = time.Now() for _, lock := range toUnLock { ok, err := l.RUnlock(t.Context(), lock) if err != nil || !ok { t.Fatal(err) } }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/DfsImplTest.java
@BeforeEach void setUp() throws IOException { // Mock the CIFSContext and its dependencies mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); mockCredentials = mock(Credentials.class); mockTransportPool = mock(SmbTransportPool.class); // Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmServletTest.java
private TestNtlmServlet ntlmServlet; @Mock private ServletConfig servletConfig; @Mock private HttpServletRequest request; @Mock private HttpServletResponse response; @Mock private HttpSession session; @Mock private CIFSContext cifsContext; @Mock private Configuration configuration; @Mock private jcifs.SmbTransportPool transportPool;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
@ExtendWith(MockitoExtension.class) class SmbFileOutputStreamTest { @Mock private SmbFile mockFile; @Mock private SmbTreeHandleImpl mockTreeHandle; @Mock private SmbFileHandleImpl mockFileHandle; @Mock private Configuration mockConfig; @Mock private Smb2WriteResponse mockWriteResponse; private SmbFileOutputStream outputStream;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
@ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbResourceLocatorImplTest { @Mock private CIFSContext ctx; @Mock private Configuration config; @Mock private Credentials creds; @Mock private NameServiceClient nsc; // Minimal URLStreamHandler to allow creating smb:// URLs in testsCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0)