Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for newConditions (0.33 sec)

  1. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcess.java

        private final static Logger LOGGER = Logging.getLogger(DefaultWorkerProcess.class);
        private final Lock lock = new ReentrantLock();
        private final Condition condition = lock.newCondition();
        private ObjectConnection connection;
        private ConnectionAcceptor acceptor;
        private ExecHandle execHandle;
        private boolean running;
        private boolean aborted;
        private Throwable processFailure;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:39:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultConditionalExecutionQueue.java

        private final Deque<ConditionalExecution<T>> queue = new LinkedList<ConditionalExecution<T>>();
        private final ReentrantLock lock = new ReentrantLock();
        private final Condition workAvailable = lock.newCondition();
        private QueueState queueState = QueueState.Working;
        @GuardedBy("lock")
        private int workerCount;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

        private static final int MAX_WAIT_TIME = 5000;
        private ExecutorImpl executor;
        private final Lock lock = new ReentrantLock();
        private final Condition condition = lock.newCondition();
        private final Set<Thread> active = new HashSet<Thread>();
        private final Set<Thread> synching = new HashSet<Thread>();
        private final List<Throwable> failures = new ArrayList<Throwable>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

        private static final Logger LOGGER = Logging.getLogger(DaemonStateCoordinator.class);
    
        private final Lock lock = new ReentrantLock();
        private final Condition condition = lock.newCondition();
        private final long cancelTimeoutMs;
    
        private State state = State.Idle;
        private final Timer idleTimer;
        private String currentCommandExecution;
        private Object result;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

     */
    class TaskRunner(
      val backend: Backend,
      internal val logger: Logger = TaskRunner.logger,
    ) {
      val lock: ReentrantLock = ReentrantLock()
      val condition: Condition = lock.newCondition()
    
      private var nextQueueName = 10000
      private var coordinatorWaiting = false
      private var coordinatorWakeUpAt = 0L
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectMaxNConcurrentRequests.java

            if (expectedRequests.size() < maxConcurrent) {
                throw new IllegalArgumentException("Too few requests specified.");
            }
            this.lock = lock;
            this.condition = lock.newCondition();
            this.testId = testId;
            this.timeoutMs = timeout.toMillis();
            this.waitingFor = maxConcurrent;
            this.previous = previous;
            for (ResourceExpectation expectation : expectedRequests) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Striped.java

          this.strongReference = strongReference;
        }
    
        @Override
        Lock delegate() {
          return delegate;
        }
    
        @Override
        public Condition newCondition() {
          return new WeakSafeCondition(delegate.newCondition(), strongReference);
        }
      }
    
      /** Condition object that ensures a strong reference is retained to a specified object. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 20:55:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Striped.java

          this.strongReference = strongReference;
        }
    
        @Override
        Lock delegate() {
          return delegate;
        }
    
        @Override
        public Condition newCondition() {
          return new WeakSafeCondition(delegate.newCondition(), strongReference);
        }
      }
    
      /** Condition object that ensures a strong reference is retained to a specified object. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 20:55:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandle.java

            this.timeoutMillis = timeoutMillis;
            this.daemon = daemon;
            this.executor = executor;
            this.lock = new ReentrantLock();
            this.stateChanged = lock.newCondition();
            this.state = ExecHandleState.INIT;
            this.buildCancellationToken = buildCancellationToken;
            processLauncher = NativeServices.getInstance().get(ProcessLauncher.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. pkg/controller/job/job_controller_test.go

    	fakeClock := clocktesting.NewFakeClock(time.Now())
    	now := fakeClock.Now()
    	minuteAgo := now.Add(-time.Minute)
    	completedCond := newCondition(batch.JobComplete, v1.ConditionTrue, "", "", now)
    	succeededCond := newCondition(batch.JobSuccessCriteriaMet, v1.ConditionTrue, "", "", minuteAgo)
    	failedCond := newCondition(batch.JobFailed, v1.ConditionTrue, "", "", now)
    	indexedCompletion := batch.IndexedCompletion
    	mockErr := errors.New("mock error")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
Back to top