Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DefaultBuildOperationQueue (0.32 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/operations/DefaultBuildOperationQueue.java

    import java.util.Deque;
    import java.util.LinkedList;
    import java.util.concurrent.Executor;
    import java.util.concurrent.locks.Condition;
    import java.util.concurrent.locks.ReentrantLock;
    
    class DefaultBuildOperationQueue<T extends BuildOperation> implements BuildOperationQueue<T> {
        private enum QueueState {
            Working, Finishing, Cancelled, Done
        }
    
        private final boolean allowAccessToProjectState;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 31 15:18:20 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/operations/DefaultBuildOperationQueueFactory.java

            // Assert that the current thread is a worker
            workerLeaseService.getCurrentWorkerLease();
            return new DefaultBuildOperationQueue<>(allowAccessToProjectState, workerLeaseService, executor, worker);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 28 01:20:28 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationQueueTest.groovy

            workerRegistry.startProjectExecution(true)
            lease = workerRegistry.startWorker()
            operationQueue = new DefaultBuildOperationQueue(false, workerRegistry, Executors.newFixedThreadPool(threads), new SimpleWorker())
        }
    
        def "cleanup"() {
            lease?.leaseFinish()
            workerRegistry.stop()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultConditionalExecutionQueue.java

    import java.util.concurrent.locks.Condition;
    import java.util.concurrent.locks.ReentrantLock;
    
    /**
     * A queueing mechanism that only executes items once certain conditions are reached.
     */
    // TODO This class, DefaultBuildOperationQueue and ExecutionPlan have many of the same
    // behavior and concerns - we should look for a way to generalize this pattern.
    public class DefaultConditionalExecutionQueue<T> implements ConditionalExecutionQueue<T> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultTransform.java

                    // when performed from a worker thread (see DefaultBuildOperationQueue.waitForCompletion() which intentionally does not release the project locks while waiting)
                    // TODO - add validation to fail eagerly when a worker attempts to lock a project
                    //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:19 UTC 2024
    - 34.8K bytes
    - Viewed (0)
Back to top