Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 595 for lockedm (0.18 sec)

  1. subprojects/core/src/test/groovy/org/gradle/execution/plan/AbstractExecutionPlanSpec.groovy

            boolean tryLock() {
                if (!locks.contains(this) && locked) {
                    return false
                }
                locked = true
                locks.add(this)
                return true
            }
    
            @Override
            void unlock() {
                locked = false
                locks.remove(this)
            }
    
            @Override
            String getDisplayName() {
                return "some lock"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 24 11:56:02 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. src/sync/mutex_test.go

    		t.Logf("got mutexrate %d expected 0", n)
    	}
    	defer runtime.SetMutexProfileFraction(0)
    
    	m := new(Mutex)
    
    	m.Lock()
    	if m.TryLock() {
    		t.Fatalf("TryLock succeeded with mutex locked")
    	}
    	m.Unlock()
    	if !m.TryLock() {
    		t.Fatalf("TryLock failed with mutex unlocked")
    	}
    	m.Unlock()
    
    	c := make(chan bool)
    	for i := 0; i < 10; i++ {
    		go HammerMutex(m, 1000, c)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 16 21:25:35 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  3. src/syscall/forkpipe2.go

    // Avoid the serialization by ensuring that ForkLock is locked
    // at the first fork and unlocked when there are no more forks.
    func acquireForkLock() {
    	forkingLock.Lock()
    	defer forkingLock.Unlock()
    
    	if forking == 0 {
    		// There is no current write lock on ForkLock.
    		ForkLock.Lock()
    		forking++
    		return
    	}
    
    	// ForkLock is currently locked for writing.
    
    	if hasWaitingReaders(&ForkLock) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 10 19:19:59 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. plugin/pkg/admission/eventratelimit/admission_test.go

    				newEventRequest().withNamespace("B").blocked(),
    				newEventRequest().withNamespace("A").blocked(),
    				// This should clear out namespace B from the lru cache
    				newEventRequest().withNamespace("C"),
    				newEventRequest().withNamespace("A").blocked(),
    				newEventRequest().withNamespace("B"),
    			},
    		},
    		{
    			name:                     "event blocked by source+object limits",
    			serverBurst:              100,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 17 13:19:08 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/management/internal/DefaultPluginResolutionStrategy.java

        private final Map<PluginId, String> pluginVersions = new HashMap<>();
        private boolean locked;
    
        public DefaultPluginResolutionStrategy(ListenerManager listenerManager) {
            listenerManager.addListener(new InternalBuildAdapter(){
                @Override
                public void projectsLoaded(Gradle gradle) {
                    locked = true;
                }
            });
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

                }
            }
    
            when:
            beforeState.eachWithIndex { boolean locked, int i -> lock[i].lockedState = locked }
            coordinationService.withStateLock(outerAction)
    
            then:
            afterState.eachWithIndex { boolean locked, int i -> assert lock[i].lockedState == locked }
    
            where:
            beforeState                  | afterState
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/MixedDependencyLockingIntegrationTest.groovy

        def lockfileFixture = new LockfileFixture(testDirectory: testDirectory)
    
        def setup() {
            settingsFile << "rootProject.name = 'mixedDepLock'"
        }
    
        def 'can resolve locked and unlocked configurations'() {
            mavenRepo.module('org', 'foo', '1.0').publish()
            mavenRepo.module('org', 'foo', '1.1').publish()
    
            buildFile << """
    repositories {
        maven {
            name 'repo'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingStrictModeIntegrationTest.groovy

            fails 'dependencies', '--update-locks', 'org:foo'
    
            then:
            failureHasCause("Locking strict mode: Configuration ':lockedConf' is locked but does not have lock state.")
            lockfileFixture.expectLockStateMissing('unlockedConf')
        }
    
        def 'ignores not locked configurations'() {
            mavenRepo.module('org', 'foo', '1.0').publish()
    
            buildFile << """
    dependencyLocking {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/initialization/DefaultClassLoaderScopeTest.groovy

        }
    
        def "locked scope with no modifications exports parent"() {
            when:
            scope.lock()
    
            then:
            scope.localClassLoader.is root.exportClassLoader
            scope.exportClassLoader.is root.exportClassLoader
        }
    
        def "locked empty scope does not define any classes"() {
            when:
            scope.lock()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 24 13:56:30 UTC 2022
    - 13.8K bytes
    - Viewed (0)
  10. test/fixedbugs/issue5963.go

    // Used to die in runtime due to init goroutine exiting while
    // locked to main thread.
    
    package main
    
    import (
    	"os"
    	"runtime"
    )
    
    func init() {
    	c := make(chan int, 1)
    	defer func() {
    		c <- 0
    	}()
    	go func() {
    		os.Exit(<-c)
    	}()
    	runtime.Goexit()
    }
    
    func main() {
    }
    
    /* Before fix:
    
    invalid m->locked = 2
    fatal error: internal lockOSThread error
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 929 bytes
    - Viewed (0)
Back to top