Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for hasMutableState (0.14 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectStateRegistryTest.groovy

                            assertTrue !state2.hasMutableState()
                        }
                        state2.applyToMutableState {
                            assertTrue state1.hasMutableState()
                            assertTrue state2.hasMutableState()
                        }
                        assert state1.hasMutableState()
                        assert !state2.hasMutableState()
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/ModelContainer.java

         */
        void applyToMutableState(Consumer<? super T> action);
    
        /**
         * Returns whether or not the current thread has access to the mutable model.
         */
        boolean hasMutableState();
    
        /**
         * Creates a new container for a value that is calculated from the mutable state of this container, and then reused by multiple threads.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/initialization/RootScriptDomainObjectContext.java

        public ProjectInternal getProject() {
            return null;
        }
    
        @Override
        public ModelContainer<Object> getModel() {
            return this;
        }
    
        @Override
        public boolean hasMutableState() {
            return true;
        }
    
        @Override
        public <S> S fromMutableState(Function<? super Object, ? extends S> factory) {
            return factory.apply(MODEL);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Oct 23 18:38:36 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultProjectStateRegistry.java

                    if (added) {
                        canDoAnythingToThisProject.remove(currentThread);
                    }
                }
            }
    
            @Override
            public boolean hasMutableState() {
                Thread currentThread = Thread.currentThread();
                if (canDoAnythingToThisProject.contains(currentThread) || workerLeaseService.isAllowedUncontrolledAccessToAnyProject()) {
                    return true;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 21K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/DefaultRootComponentMetadataBuilder.java

            ProjectComponentIdentifier projectId = module.getProjectId();
            if (projectId != null) {
                ProjectState projectState = projectStateRegistry.stateFor(projectId);
                if (!projectState.hasMutableState()) {
                    throw new IllegalStateException("Thread should hold project lock for " + projectState.getDisplayName());
                }
                return projectState.fromMutableState(project -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultTransform.java

            }
    
            private IsolatedParameters isolateParameters(InputFingerprinter inputFingerprinter) {
                ModelContainer<?> model = owner.getModel();
                if (!model.hasMutableState()) {
                    // This may happen when a task visits artifacts using a FileCollection instance created from a Configuration instance in a different project (not an artifact produced by a different project, these work fine)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:19 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/DefaultConfiguration.java

            if (isFullyResoled(currentState)) {
                return currentState.get();
            }
    
            ResolverResults newState;
            if (!domainObjectContext.getModel().hasMutableState()) {
                if (!workerThreadRegistry.isWorkerThread()) {
                    // Error if we are executing in a user-managed thread.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:36:01 UTC 2024
    - 85.4K bytes
    - Viewed (0)
Back to top