- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 928 for lock1 (0.1 sec)
-
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; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Dec 13 19:45:20 UTC 2023 - 27.5K bytes - Viewed (0) -
src/os/file_mutex_plan9.go
// then actually close it. func (file *file) decref() error { if file.fdmu.Decref() { return file.destroy() } return nil } // readLock adds a reference to the file and locks it for reading. // It returns an error if the file is already closed. func (file *file) readLock() error { if !file.fdmu.ReadLock() { return ErrClosed } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 1.8K bytes - Viewed (0) -
platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseDependencyLockingIntegrationTest.groovy
mvnRepo.module("groupOne", "artifactTwo", "1.1").publish() def repoJar = mvnRepo.module("groupOne", "artifactTwo", "2.0").publish().artifactFile file('gradle/dependency-locks/compileClasspath.lockfile') << 'groupOne:artifactTwo:1.1' //when runEclipseTask """ apply plugin: 'java' apply plugin: 'eclipse' repositories { maven { url "${mvnRepo.uri}" } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 2.8K bytes - Viewed (0) -
platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaDependencyLockingIntegrationTest.groovy
mvnRepo.module("groupOne", "artifactTwo").publish() mvnRepo.module("groupOne", "artifactTwo", "1.1").publish() mvnRepo.module("groupOne", "artifactTwo", "2.0").publish() file('gradle/dependency-locks/compileClasspath.lockfile') << 'groupOne:artifactTwo:1.1' //when runIdeaTask """ apply plugin: 'java' apply plugin: 'idea' repositories { maven { url "${mvnRepo.uri}" } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 2.9K bytes - Viewed (0) -
src/runtime/lock_futex.go
} func mutexContended(l *mutex) bool { return atomic.Load(key32(&l.key)) > mutex_locked } func lock(l *mutex) { lockWithRank(l, getLockRank(l)) } func lock2(l *mutex) { gp := getg() if gp.m.locks < 0 { throw("runtime·lock: lock count") } gp.m.locks++ // Speculative grab for lock. v := atomic.Xchg(key32(&l.key), mutex_locked) if v == mutex_unlocked { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:34 UTC 2024 - 5.4K bytes - Viewed (0) -
src/runtime/sema.go
// Fast-path: if there are no new waiters since the last notification // we don't need to acquire the lock at all. if l.wait.Load() == atomic.Load(&l.notify) { return } lockWithRank(&l.lock, lockRankNotifyList) // Re-check under the lock if we need to do anything. t := l.notify if t == l.wait.Load() { unlock(&l.lock) return } // Update the next notify ticket number. atomic.Store(&l.notify, t+1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 19K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/AsyncDispatch.java
import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import java.util.concurrent.Executor; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * <p>A {@link Dispatch} implementation which delivers messages asynchronously. Calls to
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/jit/variable_info_util.h
// // `variables` is allowed to contain instances that don't track a resource // variable (i.e. variables[i].var() can be null for some i). // // If the variable is read_only(), only acquires reader locks. Status LockVariables(absl::Span<VariableInfo*> variables) TF_EXCLUSIVE_LOCK_FUNCTION(); Status LockVariables(absl::Span<VariableInfo> variables) TF_EXCLUSIVE_LOCK_FUNCTION();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 14 21:57:02 UTC 2023 - 4.3K bytes - Viewed (0) -
src/runtime/mheap.go
// allocate a new arena. lock(&gcBitsArenas.lock) // Try the head arena again, since it may have changed. Now // that we hold the lock, the list head can't change, but its // free position still can. if p := gcBitsArenas.next.tryAlloc(bytesNeeded); p != nil { unlock(&gcBitsArenas.lock) return p } // Allocate a new arena. This may temporarily drop the lock. fresh := newArenaMayUnlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/AbstractVirtualFileSystem.java
import org.gradle.internal.vfs.VirtualFileSystem; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Collections; import java.util.Optional; import java.util.concurrent.locks.ReentrantLock; import java.util.function.Supplier; import java.util.function.UnaryOperator; import java.util.stream.Stream; public abstract class AbstractVirtualFileSystem implements VirtualFileSystem {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 5.5K bytes - Viewed (0)