Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for ResourceLock (0.17 sec)

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

     * outside of a {@link ResourceLockCoordinationService#withStateLock(Transformer)} transform.
     */
    public interface ResourceLock extends Describable {
        /**
         * Returns true if this resource is locked by any thread.
         *
         * @return true if any thread holds the lock for this resource
         */
        boolean isLocked();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. pilot/pkg/status/distribution/resourcelock.go

    John Howard <******@****.***> 1658777447 +0000
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 632 bytes
    - Viewed (0)
  3. pilot/pkg/status/resourcelock.go

    John Howard <******@****.***> 1707017982 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java

            Registries registries = this.registries.get();
            Collection<? extends ResourceLock> projectLocks = registries.getProjectLockRegistry().getResourceLocksByCurrentThread();
            Collection<? extends ResourceLock> taskLocks = registries.getTaskExecutionLockRegistry().getResourceLocksByCurrentThread();
            List<ResourceLock> locks = new ArrayList<ResourceLock>(projectLocks.size() + taskLocks.size());
            locks.addAll(projectLocks);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 04:43:28 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/work/TestWorkerLeaseService.groovy

        @Override
        void withoutLocks(Collection<? extends ResourceLock> locks, Runnable action) {
            action.run()
        }
    
        @Override
        void withoutLock(ResourceLock lock, Runnable action) {
            action.run()
        }
    
        @Override
        <T> T withReplacedLocks(Collection<? extends ResourceLock> currentLocks, ResourceLock newLock, Factory<T> factory) {
            return factory.create()
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/AbstractResourceLockRegistry.java

            }
        }
    
        @Override
        public boolean hasOpenLocks() {
            for (ResourceLock resourceLock : resourceLocks.values()) {
                if (resourceLock.isLocked()) {
                    return true;
                }
            }
            return false;
        }
    
        @Override
        public void lockAcquired(ResourceLock resourceLock) {
            ThreadLockDetails<T> lockDetails = detailsForCurrentThread();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseService.java

         */
        <T> T withLocks(Collection<? extends ResourceLock> locks, Factory<T> factory);
    
        /**
         * Runs a given {@link Runnable} while the specified locks are being held, releasing
         * the locks upon completion.  Blocks until the specified locks can be obtained.
         */
        void withLocks(Collection<? extends ResourceLock> locks, Runnable runnable);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseRegistry.java

         */
        WorkerLease getCurrentWorkerLease();
    
        /**
         * Creates a new {@link ResourceLock} that can be used to reserve a worker lease.  Note that this does not actually reserve a lease,
         * it simply creates a {@link ResourceLock} representing the worker lease.  The worker lease can be reserved only when
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/ExclusiveAccessResourceLockTest.groovy

            when:
            coordinationService.withStateLock(tryLock(resourceLock))
    
            then:
            resourceLock.doIsLocked()
            resourceLock.doIsLockedByCurrentThread()
    
            when:
            coordinationService.withStateLock(unlock(resourceLock))
    
            then:
            !resourceLock.doIsLocked()
            !resourceLock.doIsLockedByCurrentThread()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/DefaultResourceLockCoordinationService.java

                    }
                    lockedResources.add(resourceLock);
                }
            }
    
            @Override
            public void registerUnlocked(ResourceLock resourceLock) {
                if (!rollback && (lockedResources == null || !lockedResources.remove(resourceLock))) {
                    if (unlockedResources == null) {
                        unlockedResources = new HashSet<ResourceLock>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top