Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hasOpenLocks (0.14 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/AbstractResourceLockRegistryTest.groovy

        def "identifies open locks in the registry"() {
            when:
            def lock = registry.getResourceLock("test")
    
            then:
            !registry.hasOpenLocks()
    
            when:
            lock.lockedState = true
    
            then:
            registry.hasOpenLocks()
        }
    
        def inNewThread(Closure closure) {
            def thread = new Thread(closure)
            thread.start()
            thread.join()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ResourceLockRegistry.java

        /**
         * Returns true if the registry has any locks that are being held by a thread.
         *
         * @return true if any locks in the registry are currently held.
         */
        boolean hasOpenLocks();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java

                    @Override
                    public void run() {
                        if (projectLockRegistry.hasOpenLocks()) {
                            throw new IllegalStateException("Some project locks have not been unlocked.");
                        }
                        if (taskLockRegistry.hasOpenLocks()) {
                            throw new IllegalStateException("Some task execution locks have not been unlocked.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 04:43:28 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/AbstractResourceLockRegistry.java

            try {
                return factory.create();
            } finally {
                lockDetails.canAccessAnything = previous;
            }
        }
    
        @Override
        public boolean hasOpenLocks() {
            for (ResourceLock resourceLock : resourceLocks.values()) {
                if (resourceLock.isLocked()) {
                    return true;
                }
            }
            return false;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top