- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 460 for lockedm (0.17 sec)
-
src/runtime/rwmutex_test.go
"runtime/debug" "sync/atomic" "testing" ) func parallelReader(m *RWMutex, clocked chan bool, cunlock *atomic.Bool, cdone chan bool) { m.RLock() clocked <- true for !cunlock.Load() { } m.RUnlock() cdone <- true } func doTestParallelReaders(numReaders int) { GOMAXPROCS(numReaders + 1) var m RWMutex m.Init() clocked := make(chan bool, numReaders) var cunlock atomic.Bool cdone := make(chan bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 22:00:45 UTC 2023 - 4.2K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/stress.go
// blocked goroutines, LockOSThread, pipes, and GOMAXPROCS). //go:build ignore package main import ( "log" "net" "os" "runtime" "runtime/trace" "sync" "time" ) func main() { var wg sync.WaitGroup done := make(chan bool) // Create a goroutine blocked before tracing. wg.Add(1) go func() { <-done wg.Done()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceTest.groovy
import org.gradle.internal.Factory class DefaultWorkerLeaseServiceTest extends AbstractWorkerLeaseServiceTest { def workerLeaseService = workerLeaseService(1) def "can use withLocks to execute a runnable with resources locked"() { boolean executed = false def lock1 = resourceLock("lock1", false) def lock2 = resourceLock("lock1", false) when: workerLeaseService.withLocks([lock1, lock2], runnable {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 4.8K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/CacheBuilder.java
* <li>Using {@link org.gradle.cache.FileLockManager.LockMode#Exclusive} will lock the cache on open() in the exclusive mode and keep it locked until {@link PersistentCache#close()} is called.</li> * <li>Using {@link org.gradle.cache.FileLockManager.LockMode#Shared} will lock the cache on open() in the shared mode and keep it locked until {@link PersistentCache#close()} is called.</li>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 3.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DependencyLockingProvider.java
*/ ListProperty<String> getIgnoredDependencies(); /** * Confirms that the given lock is not locked. * This allows the lock state for the lock to be dropped if it existed before. * * @param lockId the ID of the lock to confirm is not locked */ void confirmNotLocked(String lockId);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 05 02:50:41 UTC 2024 - 3.2K bytes - Viewed (0) -
clause/locking.go
package clause const ( LockingStrengthUpdate = "UPDATE" LockingStrengthShare = "SHARE" LockingOptionsSkipLocked = "SKIP LOCKED" LockingOptionsNoWait = "NOWAIT" ) type Locking struct { Strength string Table Table Options string } // Name where clause name func (locking Locking) Name() string { return "FOR" } // Build build where clause func (locking Locking) Build(builder Builder) {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Dec 15 08:32:56 UTC 2023 - 773 bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/locking/DefaultDependencyLockingProvider.java
} return ignoredEntryFilter; } @Nullable private List<String> findLockedModules(String lockId) { List<String> result = allLockState.get(lockId); if (result == null) { result = lockFileReaderWriter.readLockFile(lockId); } return result; } private synchronized void loadLockState() { if (!uniqueLockStateLoaded) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 05 02:50:41 UTC 2024 - 14.1K bytes - Viewed (0) -
src/runtime/chan.go
} // send processes a send operation on an empty channel c. // The value ep sent by the sender is copied to the receiver sg. // The receiver is then woken up to go on its merry way. // Channel c must be empty and locked. send unlocks c with unlockf. // sg must already be dequeued from c. // ep must be non-nil and point to the heap or the caller's stack. func send(c *hchan, sg *sudog, ep unsafe.Pointer, unlockf func(), skip int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 25.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationRoleUsageIntegrationTest.groovy
} // endregion Warnings private void assertUsageLockedFailure(String configurationName, String roleName = null) { String suffix = roleName ? "as it was locked upon creation to the role: '$roleName'." : "as it has been locked." failure.assertHasCause("Cannot change the allowed usage of configuration ':$configurationName', $suffix") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 27 01:42:49 UTC 2024 - 27.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/locking/NoOpDependencyLockingProviderTest.groovy
import static java.util.Collections.emptySet class NoOpDependencyLockingProviderTest extends Specification { @Subject def provider = NoOpDependencyLockingProvider.instance def 'does not find locked dependencies'() { when: def result = provider.loadLockState('conf', Describables.of("foo")) then: !result.mustValidateLockState() } def 'does nothing on persist'() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 05 02:50:41 UTC 2024 - 1.3K bytes - Viewed (0)