Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for releaseLocks (0.24 sec)

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

                                resourceLockState.releaseLocks();
                                return false;
                            default:
                                throw new IllegalArgumentException("Unhandled disposition type: " + disposition.name());
                        }
                    }
                } catch (Throwable t) {
                    resourceLockState.releaseLocks();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java

        }
    
        @Override
        public void runAsIsolatedTask() {
            Registries registries = this.registries.get();
            releaseLocks(registries.getProjectLockRegistry().getResourceLocksByCurrentThread());
            releaseLocks(registries.getTaskExecutionLockRegistry().getResourceLocksByCurrentThread());
        }
    
        @Override
        public void runAsIsolatedTask(Runnable runnable) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 04:43:28 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ResourceLockState.java

         * notify threads waiting on a lock.
         */
        void registerUnlocked(ResourceLock resourceLock);
    
        /**
         * Release any locks that have been acquired during the transform.
         */
        void releaseLocks();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

                }
            })
    
            then:
            thrown(RuntimeException)
    
            and:
            !lock1.lockedState
            !lock2.lockedState
        }
    
        def "locks are rolled back when releaseLocks is called"() {
            def lock1 = resourceLock("lock1", false)
            def lock2 = resourceLock("lock2", false)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultFinalizedExecutionPlan.java

            resources.clear();
            if (!tryAcquireLocksForNode(node, resources)) {
                releaseLocks(resources);
                return false;
            }
    
            MutationInfo mutations = node.getMutationInfo();
    
            if (conflictsWithOtherNodes(node, mutations)) {
                releaseLocks(resources);
                return false;
            }
    
            node.startExecution(this::recordNodeExecutionStarted);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 28 21:49:39 UTC 2022
    - 28.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    		for _, admissionAttribute := range admissionAttributes {
    			admissionAttribute.result = nil
    		}
    		return
    	}
    
    	if e.lockAcquisitionFunc != nil {
    		releaseLocks := e.lockAcquisitionFunc(quotas)
    		defer releaseLocks()
    	}
    
    	e.checkQuotas(quotas, admissionAttributes, 3)
    }
    
    // checkQuotas checks the admission attributes against the passed quotas.  If a quota applies, it will attempt to update it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultPlanExecutor.java

                        try {
                            workItem = queue.selectNext();
                        } catch (Throwable t) {
                            resourceLockState.releaseLocks();
                            queue.abortAllAndFail(t);
                            return FINISHED;
                        }
                        if (workItem.isNoMoreWorkToStart()) {
                            return FINISHED;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/AbstractTrackedResourceLock.java

                    try {
                        owner.lockAcquired(this);
                    } catch (RuntimeException e) {
                        releaseLock();
                        throw e;
                    }
                    coordinationService.getCurrent().registerLocked(this);
                    return true;
                } else {
                    return false;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/counter/counter.go

    			c.releaseLock(state)
    			return
    		}
    	}
    }
    
    func (c *Counter) releaseReader(state counterStateBits) {
    	for ; ; state = c.state.load() {
    		// If we are the last reader and havePtr was cleared
    		// while this batch of readers was using c.ptr,
    		// it's our job to update c.ptr by upgrading to a full lock
    		// and letting releaseLock do the work.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/TaskExecutionLock.java

        }
    
        @Override
        protected boolean canAcquire() {
            return stateLock.isLockedByCurrentThread() || stateLock.tryLock();
        }
    
        @Override
        protected void releaseLock() {
            super.releaseLock();
            stateLock.unlock();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top