- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for runAsWorkerThread (0.24 sec)
-
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/work/TestWorkerLeaseService.groovy
return 0 } @Override WorkerLease getCurrentWorkerLease() { return workerLease() } @Override <T> T runAsWorkerThread(Factory<T> action) { return action.create() } @Override void runAsWorkerThread(Runnable action) { action.run() } @Override void runAsUnmanagedWorkerThread(Runnable action) { action.run() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.7K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationQueueTest.groovy
println "expecting ${expectedWorkerCount} concurrent work processors to be started..." when: def waitForCompletionThread = new Thread({ workerRegistry.runAsWorkerThread { runs.times { operationQueue.add(new SynchronizedBuildOperation(operationAction, startedLatch, releaseLatch)) } operationQueue.waitForCompletion() } })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 9.4K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java
} return withLocks(Collections.singletonList(newWorkerLease()), action); } @Override public void runAsWorkerThread(Runnable action) { runAsWorkerThread(Factories.<Void>toFactory(action)); } @Override public void runAsUnmanagedWorkerThread(Runnable action) { Collection<? extends ResourceLock> locks = workerLeaseLockRegistry.getResourceLocksByCurrentThread();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 09 04:43:28 UTC 2024 - 20.9K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultConditionalExecutionQueue.java
/** * Run executions until there are none ready to be executed. */ private void runBatch(final ConditionalExecution<?> firstOperation) { workerLeaseService.runAsWorkerThread(new Runnable() { @Override public void run() { ConditionalExecution<?> operation = firstOperation; while (operation != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:40 UTC 2024 - 7.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationExecutorParallelExecutionTest.groovy
}) } then: thrown(NoAvailableWorkerLeaseException) } def workerThread(Closure cl) { start { workerRegistry.runAsWorkerThread(cl) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 9.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectStateRegistryTest.groovy
} registry.registerProjects(build, descriptors) return build } void workerThread(Closure closure) { start { workerLeaseService.runAsWorkerThread(closure) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 24.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/model/StateTransitionControllerTest.groovy
return new StateTransitionController<TestState>(Describables.of("<state>"), initialState, workerLeaseService.newResource()) } def <T> T asWorker(Factory<T> action) { return workerLeaseService.runAsWorkerThread(action) } def "runs action for transition when in from state"() { def action = Mock(Runnable) def controller = controller(TestState.A) when: asWorker {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 23K bytes - Viewed (0) -
subprojects/composite-builds/src/test/groovy/org/gradle/composite/internal/DefaultIncludedBuildTaskGraphParallelTest.groovy
} ExecutionResult<Void> scheduleAndRun(TreeServices services, Action<BuildTreeWorkGraph.Builder> action) { def result = null services.workerLeaseService.runAsWorkerThread { services.buildTaskGraph.withNewWorkGraph { graph -> graph.scheduleWork { builder -> action(builder) } result = graph.runWork()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 05 16:29:26 UTC 2024 - 20.6K bytes - Viewed (0)