Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withState (0.09 sec)

  1. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultIncludedBuildTaskGraph.java

                }
            } finally {
                current.set(previous);
            }
        }
    
        @Override
        public IncludedBuildTaskResource locateTask(TaskIdentifier taskIdentifier) {
            return withState(workGraph -> {
                BuildState build = buildRegistry.getBuild(taskIdentifier.getBuildIdentifier());
                ExportedTaskNode taskNode = build.getWorkGraph().locateTask(taskIdentifier);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:04:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

                    }
                })
    
                thread.blockUntil.executed2
            }
    
            then:
            lock1.lockedState
            lock2.lockedState
        }
    
        def "interrupting a withState call waiting for a resource makes it retry acquiring the lock"() {
            def lock1 = resourceLock("lock1", true)
            def count = 0
            Thread blockingThread = null
    
            when:
            async {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top