- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for runAsWorkerThread (0.24 sec)
-
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceWorkerLeaseTest.groovy
expect: async { start { registry.runAsWorkerThread { instant.worker1 thread.blockUntil.worker2 } } start { registry.runAsWorkerThread { instant.worker2 thread.blockUntil.worker1 } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 13.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerThreadRegistry.java
* * This method blocks until a worker lease is available. */ void runAsWorkerThread(Runnable action); /** * Runs the given action as an unmanaged worker, if not already a worker. This is basically the same as {@link #runAsWorkerThread(Runnable)} but does not block waiting for a lease. * Instead, a temporary lease is granted to the current thread. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 3.6K bytes - Viewed (0) -
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) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/exec/RunAsWorkerThreadBuildActionExecutor.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 1.5K 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) -
subprojects/core/src/test/groovy/org/gradle/internal/work/DefaultAsyncWorkTrackerTest.groovy
@Override void cancel() { } }) asyncWorkTracker.registerWork(operation1, completedWorkCompletion()) when: workerLeaseService.runAsWorkerThread { asyncWorkTracker.waitForCompletion(operation1, RELEASE_PROJECT_LOCKS) } then: def e = thrown(DefaultMultiCauseException) e.causes.size() == 1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 06 04:53:10 UTC 2023 - 14.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/composite-builds/src/main/java/org/gradle/composite/internal/DefaultBuildController.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 22 20:29:05 UTC 2023 - 7.7K 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)