Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for whileDisallowingProjectLockChanges (0.39 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

            when:
            workerLeaseService.whileDisallowingProjectLockChanges {
                workerLeaseService.withLocks([projectLock]) {
                }
            }
    
            then:
            def e = thrown(IllegalStateException)
            e.message == "This thread may not acquire more locks."
    
            when:
            workerLeaseService.whileDisallowingProjectLockChanges {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLeaseRegistry.java

         * then run the action and reacquire any locks.
         * If the current thread is not allowed to make changes to the project locks (via {@link #whileDisallowingProjectLockChanges(Factory)},
         * then it is safe to run the action without releasing the project locks. The worker lease is, however, released prior to running the
         * action and reacquired at the end.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/internal/operations/DefaultBuildOperationQueue.java

                            //
                            // See {@link ProjectLeaseRegistry#whileDisallowingProjectLockChanges} for more details
                            return workerLeases.whileDisallowingProjectLockChanges(() -> doRunBatch(firstOperation));
                        }
                    })
                );
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 31 15:18:20 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/operations/BuildOperationExecutor.java

         * result in deadlocks and other flaky behaviours.
         *
         * <p>See {@link org.gradle.internal.resources.ProjectLeaseRegistry#whileDisallowingProjectLockChanges(Factory)} for more details.
         */
        <O extends RunnableBuildOperation> void runAllWithAccessToProjectState(Action<BuildOperationQueue<O>> schedulingAction);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/work/TestWorkerLeaseService.groovy

        @Override
        <T> T withReplacedLocks(Collection<? extends ResourceLock> currentLocks, ResourceLock newLock, Factory<T> factory) {
            return factory.create()
        }
    
        @Override
        <T> T whileDisallowingProjectLockChanges(Factory<T> action) {
            return action.create()
        }
    
        @Override
        void blocking(Runnable action) {
            action.run()
        }
    
        @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/work/DefaultWorkerLeaseService.java

            List<? extends ResourceLock> locks = workerLeaseLockRegistry.getResourceLocksByCurrentThread();
            withoutLocks(locks, action);
        }
    
        @Override
        public <T> T whileDisallowingProjectLockChanges(Factory<T> action) {
            return registries.get().getProjectLockRegistry().whileDisallowingLockChanges(action);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 04:43:28 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top