Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getCurrent (0.1 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ResourceLockCoordinationService.java

         * of a {@link #withStateLock(InternalTransformer)} transform.
         *
         * @return the current {@link ResourceLockState} or null if not in a transform.
         */
        @Nullable
        ResourceLockState getCurrent();
    
        /**
         * Attempts to atomically change the state of resource locks.  Only one thread can alter the resource lock
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/DefaultResourceLockCoordinationService.java

                }
            }
        }
    
        @Override
        public void assertHasStateLock() {
            synchronized (lock) {
                if (getCurrent() == null) {
                    throw new IllegalStateException();
                }
            }
        }
    
        @Override
        public void addLockReleaseListener(Action<ResourceLock> listener) {
            synchronized (lock) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/CrossVersionResultsStore.java

            try (PreparedStatement statement = connection.prepareStatement(insertStatement("testOperation", "testExecution", "version", "totalTime"))) {
                addOperations(statement, testId, null, results.getCurrent());
                for (BaselineVersion baselineVersion : results.getBaselineVersions()) {
                    addOperations(statement, testId, baselineVersion.getVersion(), baselineVersion.getResults());
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/generic.go

    	// update running pod and container count
    	updateRunningPodAndContainerMetrics(pods)
    	g.podRecords.setCurrent(pods)
    
    	// Compare the old and the current pods, and generate events.
    	eventsByPodID := map[types.UID][]*PodLifecycleEvent{}
    	for pid := range g.podRecords {
    		oldPod := g.podRecords.getOld(pid)
    		pod := g.podRecords.getCurrent(pid)
    		// Get all containers in the old and the new pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

                @Override
                ResourceLockState.Disposition transform(ResourceLockState resourcesLockState) {
                    assert coordinationService.getCurrent() == resourcesLockState
                    return FINISHED
                }
            })
    
            then:
            noExceptionThrown()
        }
    
        def "locks are rolled back when an exception is thrown"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top