Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for newConditions (0.28 sec)

  1. pkg/kubelet/nodestatus/setters.go

    		for i := range node.Status.Conditions {
    			if node.Status.Conditions[i].Type == v1.NodeMemoryPressure {
    				condition = &node.Status.Conditions[i]
    			}
    		}
    
    		newCondition := false
    		// If the NodeMemoryPressure condition doesn't exist, create one
    		if condition == nil {
    			condition = &v1.NodeCondition{
    				Type:   v1.NodeMemoryPressure,
    				Status: v1.ConditionUnknown,
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ChainingHttpHandler.java

        private int requestsStarted;
    
        ChainingHttpHandler(Lock lock, int timeoutMs, AtomicInteger counter, WaitPrecondition first) {
            this.lock = lock;
            this.condition = lock.newCondition();
            this.timeoutMs = timeoutMs;
            this.counter = counter;
            this.last = first;
        }
    
        public <T extends TrackingHttpHandler> T addHandler(HandlerFactory<T> factory) {
            lock.lock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DefaultDaemonConnection.java

        }
    
        private static abstract class CommandQueue<C extends Message, H> implements Stoppable {
            private final Lock lock = new ReentrantLock();
            private final Condition condition = lock.newCondition();
            protected final LinkedList<C> queue = new LinkedList<C>();
            private final String name;
            private ManagedExecutor executor;
            private boolean removed;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

    class ConcurrentTestUtil extends ExternalResource {
        private static final Logger LOG = LoggerFactory.getLogger(ConcurrentTestUtil.class)
    
        private Lock lock = new ReentrantLock()
        private Condition threadsChanged = lock.newCondition()
        private Set<TestThread> threads = [] as Set
        private Closure failureHandler
        private List<Throwable> failures = []
        private timeout = 5000
    
        ConcurrentTestUtil() {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

        private ExclusiveCacheAccessingWorker cacheAccessWorker;
        private final Lock stateLock = new ReentrantLock(); // protects the following state
        private final Condition condition = stateLock.newCondition();
    
        private boolean open;
        private Thread owner;
        private FileLock fileLock;
        private FileLock.State stateAtOpen;
        private Runnable fileLockHeldByOwner;
        private int cacheClosedCount;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

        static class AwaitableFileLockReleasedSignal implements FileLockReleasedSignal, ExponentialBackoff.Signal {
    
            private final Lock lock = new ReentrantLock();
            private final Condition condition = lock.newCondition();
            private int waiting;
    
            @SuppressWarnings("WaitNotInLoop")
            @Override
            public boolean await(long millis) throws InterruptedException {
                lock.lock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      val id: Int,
      val connection: Http2Connection,
      outFinished: Boolean,
      inFinished: Boolean,
      headers: Headers?,
    ) {
      internal val lock: ReentrantLock = ReentrantLock()
      val condition: Condition = lock.newCondition()
    
      // Internal state is guarded by [lock]. No long-running or potentially blocking operations are
      // performed while the lock is held.
    
      /** The bytes consumed and acknowledged by the stream. */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top