- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 474 for lock1 (0.03 sec)
-
cmd/lock-rest-client.go
default: err = errors.New(r.Err) } return ok, err } // RLock calls read lock REST API. func (c *lockRESTClient) RLock(ctx context.Context, args dsync.LockArgs) (reply bool, err error) { return c.call(ctx, lockRPCRLock, &args) } // Lock calls lock REST API. func (c *lockRESTClient) Lock(ctx context.Context, args dsync.LockArgs) (reply bool, err error) { return c.call(ctx, lockRPCLock, &args) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Nov 24 17:07:14 UTC 2023 - 3.3K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/internal/filelock/filelock.go
// ensure that Unlock is always called when Lock succeeds. func Lock(f File) error { return lock(f, writeLock) } // RLock places an advisory read lock on the file, blocking until it can be locked. // // If RLock returns nil, no other process will be able to place a write lock on // the file until this process exits, closes f, or calls Unlock on it. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 17 02:24:35 UTC 2023 - 2.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/initialization/DefaultBuildLogicBuildQueue.java
} @SuppressWarnings("try") private <T> T withBuildLogicQueueLock(Supplier<T> buildAction) { lock.lock(); try { final boolean firstLockHolder = lock.getHoldCount() == 1; if (firstLockHolder) { // lock file at the top of the callstack only try (FileLock ignored = lockBuildLogicQueueFile()) { return buildAction.get();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 16 23:00:15 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/queue/MultiEndPointQueue.java
private final List<EndPointQueue> waiting = new ArrayList<EndPointQueue>(); private final Lock lock; private final QueueInitializer initializer = new QueueInitializer(); public MultiEndPointQueue(Lock lock) { this.lock = lock; } @Override public void dispatch(InterHubMessage message) { queue.add(message); flush(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 3.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/work/DefaultAsyncWorkTracker.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 6K bytes - Viewed (0) -
cmd/namespace-lock_test.go
// successfully acquiring the lock. // 2) lk2 then needs to advance and remove the resource from lockMap. // 3) lk3 or lk4 (whichever didn't execute in step 1) then executes and creates // a new entry in lockMap and acquires a lock for the same resource. <-lk2ch lk3ok := <-lk3ch lk4ok := <-lk4ch if lk3ok && lk4ok { t.Fatalf("multiple locks acquired; iteration=%d, lk3=%t, lk4=%t", i, lk3ok, lk4ok)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 3.1K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLockManager.java
* released by calling {@link FileLock#close()}. This method blocks until the lock can be acquired. * <p> * Enable other processes to request access to the provided lock. Provided action runs when the lock access request is received * (it means that the lock is contended). * * @param target The file to be locked. * @param options The lock options.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.1K bytes - Viewed (0) -
internal/lsync/lrwmutex.go
"time" ) // A LRWMutex is a mutual exclusion lock with timeouts. type LRWMutex struct { id string source string isWriteLock bool ref int mu sync.Mutex // Mutex to prevent multiple simultaneous locks } // NewLRWMutex - initializes a new lsync RW mutex. func NewLRWMutex() *LRWMutex { return &LRWMutex{} } // Lock holds a write lock on lm. //
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/jit/variable_info_util.cc
mu->lock_shared(); variables[i]->set_shared_lock_held(); } else { VLOG(4) << "Acquiring lock for variable " << reinterpret_cast<void*>(variable); mu->lock(); variables[i]->set_lock_held(); } prev = mu; } VLOG(4) << "Finished acquiring variable locks."; return absl::OkStatus(); } Status LockVariables(absl::Span<VariableInfo> variables) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectMethod.java
import java.io.File; import java.io.IOException; import java.time.Duration; import java.util.concurrent.locks.Lock; class ExpectMethod implements ResourceHandler, BuildableExpectedRequest, ResourceExpectation, BlockingRequest { private final String method; private final String path; private final Duration timeout; private final Lock lock; private ResponseProducer producer = new ResponseProducer() { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.6K bytes - Viewed (0)