Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,597 for held (0.09 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceTest.groovy

            }
    
            then:
            executed
    
            and:
            !lock1.lockedState
            !lock2.lockedState
        }
    
        def "throws an exception from withoutLocks when locks are not currently held"() {
            boolean executed = false
            def lock1 = resourceLock("lock1", false)
            def lock2 = resourceLock("lock2", false)
    
            when:
            workerLeaseService.withLocks([lock1]) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/DefaultLocalConfigurationMetadataBuilder.java

                for (PublishArtifact ownArtifact : ownArtifacts) {
                    // The following line may realize tasks, so project lock must be held.
                    result.add(new PublishArtifactLocalArtifactMetadata(componentId, ownArtifact));
                }
    
                // TODO: Deprecate the behavior of inheriting artifacts from parent configurations.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

     *
     * Follows the one directory per package name segment convention.
     * Keeps JAR files open for fast lookup, must be closed.
     *
     * Always include the current JVM platform loader for which no JAR file can be held open.
     */
    class ClassBytesRepository(
        platformClassLoader: ClassLoader,
        classPathFiles: List<File>,
        classPathDependencies: List<File> = emptyList(),
    ) : Closeable {
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 17:45:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    }
    
    // Release releases the semaphore with a weight of n.
    func (s *Weighted) Release(n int64) {
    	s.mu.Lock()
    	s.cur -= n
    	if s.cur < 0 {
    		s.mu.Unlock()
    		panic("semaphore: released more than held")
    	}
    	s.notifyWaiters()
    	s.mu.Unlock()
    }
    
    func (s *Weighted) notifyWaiters() {
    	for {
    		next := s.waiters.Front()
    		if next == nil {
    			break // No more waiters blocked.
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java

            setProjectExecutionState(current, next);
        }
    
        @Override
        public void finishProjectExecution() {
            // TODO - check no locks are currently held
            Registries current = registries.get();
            Registries next = current.finishProjectExecution();
            setProjectExecutionState(current, next);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 04:43:28 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java

            }
    
            private String cleanupErrorMessage() {
                return "Couldn't delete test dir for `" + displayName() + "` (test is holding files open). "
                    + "In order to find out which files are held open, you may find `org.gradle.integtests.fixtures.executer.GradleExecuter.withFileLeakDetection` useful.";
            }
    
            private String displayName() {
                return description.getDisplayName();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. platforms/extensibility/unit-test-fixtures/src/test/groovy/org/gradle/testfixtures/ProjectBuilderTest.groovy

            def task = project.task('custom', type: CustomTask)
            task.doStuff()
    
            then:
            task.property == 'some value'
        }
    
        @LeaksFileHandles("script jar is held open")
        def canApplyABuildScript() {
            when:
            def project = buildProject()
            project.apply from: resources.getResource('ProjectBuilderTest.gradle')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access.go

    	items, err := e.lister.ResourceQuotas(namespace).List(labels.Everything())
    	if err != nil {
    		return nil, fmt.Errorf("error resolving quota: %v", err)
    	}
    
    	// if there are no items held in our indexer, check our live-lookup LRU, if that misses, do the live lookup to prime it.
    	if len(items) == 0 {
    		lruItemObj, ok := e.liveLookupCache.Get(namespace)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. src/cmd/trace/gstate.go

    		stk = ctx.Stack(viewerFrames(gs.lastStopStack))
    	}
    	// Check invariants.
    	if gs.startRunningTime == 0 {
    		panic("silently broken trace or generator invariant (startRunningTime != 0) not held")
    	}
    	if gs.executing == R(noResource) {
    		panic("non-executing goroutine stopped")
    	}
    	ctx.Slice(traceviewer.SliceEvent{
    		Name:     gs.name(),
    		Ts:       ctx.elapsed(gs.startRunningTime),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

                                    LOGGER.debug("The file lock for {} is held by a different Gradle process (pid: {}, lockId: {}). Pinged owner at port {}", displayName, lockInfo.pid, lockInfo.lockId, lockInfo.port);
                                }
                            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top