- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 58 for newConditions (0.29 sec)
-
subprojects/core/src/main/java/org/gradle/deployment/internal/SimpleBlockingDeployment.java
import java.util.concurrent.locks.ReentrantLock; class SimpleBlockingDeployment implements DeploymentInternal { private final Lock lock = new ReentrantLock(); private final Condition upToDate = lock.newCondition(); private final DeploymentInternal delegate; private boolean outOfDate; SimpleBlockingDeployment(DeploymentInternal delegate) { this.delegate = delegate; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 23 18:00:07 UTC 2022 - 2.1K bytes - Viewed (0) -
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) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/queue/AbstractQueueTest.groovy
abstract class AbstractQueueTest extends Specification { final Condition broken = Stub() { await() >> { throw new UnsupportedOperationException("should not be waiting") } } final Lock lock = Stub() { newCondition() >> broken } def unicast() { InterHubMessage message = Stub() { getDelivery() >> InterHubMessage.Delivery.SingleHandler } return message }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 1.6K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestManagedExecutor.groovy
import java.util.concurrent.locks.ReentrantLock class TestManagedExecutor extends AbstractExecutorService implements ManagedExecutor { private final Lock lock = new ReentrantLock() private final Condition condition = lock.newCondition() private int count private final TestExecutor executor; TestManagedExecutor(TestExecutor executor) { this.executor = executor } void execute(Runnable command) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.7K bytes - Viewed (0) -
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) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/async/ServiceLifecycle.java
private enum State {RUNNING, STOPPING, STOPPED} private final String displayName; private final Lock lock = new ReentrantLock(); private final Condition condition = lock.newCondition(); private final Map<Thread, Integer> usages = new HashMap<>(); private State state = State.RUNNING; public ServiceLifecycle(String displayName) { this.displayName = displayName; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 19:07:55 UTC 2024 - 4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/deployment/internal/DefaultContinuousExecutionGate.java
import java.util.concurrent.locks.ReentrantLock; public class DefaultContinuousExecutionGate implements ContinuousExecutionGate { private final Lock lock = new ReentrantLock(); private final Condition opened = lock.newCondition(); private final List<GateKeeper> gatekeepers = new ArrayList<>(); private GateKeeper openedBy; @Override public GateKeeper createGateKeeper() { lock.lock(); try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/ConcurrentGroupingQueue.kt
*/ private val supersedes: T.(T) -> Boolean ) { private val q = ArrayDeque<T>() private val lock = ReentrantLock() private val notEmpty = lock.newCondition() fun push(element: T) { lock.withLock { q.addFirst(element) if (q.size == 1) { notEmpty.signal() } } } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/operations/DefaultBuildOperationQueue.java
// Lock protects the following state, using an intentionally simple locking strategy private final ReentrantLock lock = new ReentrantLock(); private final Condition workAvailable = lock.newCondition(); private final Condition operationsComplete = lock.newCondition(); private QueueState queueState = QueueState.Working; private int workerCount; private int pendingOperations; private final Deque<T> workQueue = new LinkedList<>();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 31 15:18:20 UTC 2023 - 10.4K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/TestExecutor.groovy
import java.util.concurrent.locks.Lock import java.util.concurrent.locks.ReentrantLock class TestExecutor implements Executor { private final Lock lock = new ReentrantLock() private final Condition condition = lock.newCondition() private final Set<Thread> threads = new HashSet<Thread>() private final TestLogger logger private Thread owner private Throwable failure private int threadNum
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.9K bytes - Viewed (0)