Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getOrRegisterResourceLock (0.3 sec)

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

            }
        }
    
        private TaskExecutionLock getTaskExecutionLockForProject(final Path projectIdentityPath, final Path projectIdentityPath1, final Path buildIdentityPath) {
            return getOrRegisterResourceLock(projectIdentityPath, new ResourceLockProducer<Path, TaskExecutionLock>() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLockRegistry.java

        }
    
        public boolean getAllowsParallelExecution() {
            return parallelEnabled;
        }
    
        public ResourceLock getAllProjectsLock(final Path buildIdentityPath) {
            return allProjectsLocks.getOrRegisterResourceLock(buildIdentityPath, new ResourceLockProducer<Path, AllProjectsLock>() {
                @Override
                public AllProjectsLock create(Path key, ResourceLockCoordinationService coordinationService, ResourceLockContainer owner) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/AbstractResourceLockRegistry.java

            this.resourceLocks = new LockCache<K, T>(coordinationService, this);
        }
    
        protected T getOrRegisterResourceLock(final K key, final ResourceLockProducer<K, T> producer) {
            return resourceLocks.getOrRegisterResourceLock(key, producer);
        }
    
        @Override
        public List<T> getResourceLocksByCurrentThread() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/LockCache.java

        public LockCache(ResourceLockCoordinationService coordinationService, ResourceLockContainer owner) {
            this.coordinationService = coordinationService;
            this.owner = owner;
        }
    
        public T getOrRegisterResourceLock(final K key, final AbstractResourceLockRegistry.ResourceLockProducer<K, T> producer) {
            try {
                return resourceLocks.get(key, new Callable<T>() {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/AbstractResourceLockRegistryTest.groovy

            TestRegistry(ResourceLockCoordinationService coordinationService) {
                super(coordinationService)
            }
    
            def getResourceLock(String displayName) {
                return getOrRegisterResourceLock(displayName, new AbstractResourceLockRegistry.ResourceLockProducer<String, ResourceLock>() {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top