- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 461 for Acquire (0.22 seconds)
-
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
assertTrue(session.isInUse(), "New session should be in use due to transport acquisition"); // Test additional acquire session.acquire(); assertTrue(session.isInUse(), "Session should still be in use after additional acquire"); // Test release (still in use because of initial transport acquire) session.release();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 5.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
// Act: create wrapper using delegate, then acquire and release once SmbTreeConnectionTrace wrapper = new SmbTreeConnectionTrace(delegate); wrapper.acquire(); wrapper.release(); // Assert: delegate interactions occur when usage transitions happen verify(delegate, times(1)).acquire(); verify(delegate, times(1)).release(); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.7K bytes - Click Count (0) -
src/main/java/jcifs/SmbTransportPool.java
* * @param tf the CIFS context to use * @param name the server name or address * @param port the port number * @param exclusive whether to acquire an unshared connection * @param forceSigning whether to enforce SMB signing * @return a connected transport * @throws UnknownHostException if the host cannot be resolvedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.5K bytes - Click Count (0) -
internal/lsync/lrwmutex_test.go
lrwm := NewLRWMutex() if !lrwm.GetRLock(ctx, "", "object1", time.Second) { panic("Failed to acquire read lock") } // fmt.Println("1st read lock acquired, waiting...") if !lrwm.GetRLock(ctx, "", "object1", time.Second) { panic("Failed to acquire read lock") } // fmt.Println("2nd read lock acquired, waiting...") go func() { time.Sleep(2 * time.Second) lrwm.RUnlock()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.8K bytes - Click Count (0) -
internal/dsync/drwmutex_test.go
panic("Failed to acquire read lock") } // fmt.Println("1st read lock acquired, waiting...") drwm2 := NewDRWMutex(ds, "simplelock") ctx2, cancel2 := context.WithCancel(t.Context()) if !drwm2.GetRLock(ctx2, cancel2, id, source, Options{Timeout: time.Second}) { panic("Failed to acquire read lock") } // fmt.Println("2nd read lock acquired, waiting...") go func() {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
} } /** * @return a file handle with increased usage count */ public SmbFileHandleImpl acquire() { final long usage = this.usageCount.incrementAndGet(); if (log.isTraceEnabled()) { log.trace(String.format("Acquire %s (%d)", this, usage)); } return this; } /** * */ public void markClosed() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.4K bytes - Click Count (1) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenRepositorySystemUtils.java
* assist those clients that employ the repository system outside of an IoC container, Maven plugins should instead * always use regular dependency injection to acquire the repository system. * * @deprecated See {@link MavenSessionBuilderSupplier} */ @Deprecated public final class MavenRepositorySystemUtils { private MavenRepositorySystemUtils() {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.4K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilderFactory.java
* is only meant as a utility for developers that want to employ the settings builder outside of the Maven build system, * Maven plugins should always acquire settings builder instances via dependency injection. Developers might want to * subclass this factory to provide custom implementations for some of the components used by the settings builder. *
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 2.5K bytes - Click Count (0) -
internal/lock/lock_nix.go
// it is similar to LockedOpenFile with with syscall.LOCK_EX // mode but along with syscall.LOCK_NB such that the function // doesn't wait forever but instead returns if it cannot // acquire a write lock. func TryLockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) { return lockedOpenFile(path, flag, perm, syscall.LOCK_NB) } // LockedOpenFile - initializes a new lock and protects
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 19 01:35:22 GMT 2021 - 2.8K bytes - Click Count (0) -
cmd/namespace-lock_test.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3K bytes - Click Count (0)