- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 889 for Acquire (0.05 seconds)
-
src/main/java/jcifs/util/transport/Transport.java
/** * Acquires a reference to this transport, incrementing the usage count. * * @return session increased usage count */ public Transport acquire() { final long usage = this.usageCount.incrementAndGet(); if (log.isTraceEnabled()) { log.trace("Acquire transport " + usage + " " + this); } return this;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 27.8K bytes - Click Count (0) -
docs/contribute/concurrency.md
### Locks We have 3 different things that we synchronize on. #### Http2Connection This lock guards internal state of each connection. This lock is never held for blocking operations. That means that we acquire the lock, read or write a few fields and release the lock. No I/O and no application-layer callbacks. #### Http2Stream
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 16:35:36 GMT 2022 - 7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
void contextAccessor() { assertSame(ctx, transport.getContext()); } @Test @DisplayName("acquire returns same instance") void acquireReturnsSameInstance() { SmbTransportImpl acquired = transport.acquire(); assertSame(transport, acquired); transport.close(); // release once } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
return this.transportContext; } /** * {@inheritDoc} * * @see jcifs.util.transport.Transport#acquire() */ @Override public SmbTransportImpl acquire() { return (SmbTransportImpl) super.acquire(); } /** * @return the server's encryption key */ @Override public byte[] getServerEncryptionKey() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0) -
docs/en/docs/advanced/events.md
/// ### `startup` and `shutdown` together { #startup-and-shutdown-together } There's a high chance that the logic for your *startup* and *shutdown* is connected, you might want to start something and then finish it, acquire a resource and then release it, etc. Doing that in separated functions that don't share logic or variables together is more difficult as you would need to store values in global variables or similar tricks.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 7.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
throw new ClassCastException(); } /** * @return session increased usage count */ public SmbSessionImpl acquire() { long usage = this.usageCount.incrementAndGet(); if (log.isTraceEnabled()) { log.trace("Acquire session " + usage + " " + this); } if (usage == 1) { synchronized (this) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0) -
cmd/erasure-server-pool.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 89.2K bytes - Click Count (0) -
internal/lock/lock_windows.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) { var lockType uint32 = lockFileFailImmediately | lockFileExclusiveLock if flag == syscall.O_RDONLY {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.9K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Striped64.java
Striped64() {} /** CASes the base field. */ final boolean casBase(long cmp, long val) { return UNSAFE.compareAndSwapLong(this, BASE_OFFSET, cmp, val); } /** CASes the busy field from 0 to 1 to acquire lock. */ final boolean casBusy() { return UNSAFE.compareAndSwapInt(this, BUSY_OFFSET, 0, 1); } /** * Computes the function of current and new value. Subclasses should open-code this update
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 15 22:17:15 GMT 2025 - 11.4K bytes - Click Count (0) -
internal/dsync/dsync_test.go
for i := range nodes { clnts = append(clnts, newClient(nodes[i].URL)) } ds = &Dsync{ GetLockers: func() ([]NetLocker, string) { return clnts, uuid.New().String() }, Timeouts: Timeouts{ Acquire: testDrwMutexAcquireTimeout, RefreshCall: testDrwMutexRefreshCallTimeout, UnlockCall: testDrwMutexUnlockCallTimeout, ForceUnlockCall: testDrwMutexForceUnlockCallTimeout, }, }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 10.8K bytes - Click Count (0)