- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 810 for lock1 (0.13 sec)
-
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/AbstractResourceLockRegistryTest.groovy
def "can get a lock associated with the current thread"() { when: def lock = registry.getResourceLock("test") then: lock instanceof TestTrackedResourceLock when: lock.tryLock() then: registry.getResourceLocksByCurrentThread() == [lock] } def "does not get locks associated with other threads"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/Synchronizer.java
* * Fails if the current thread is already holding the resource lock. May release project locks prior to blocking, as per {@link WorkerLeaseService#blocking(Runnable)}. */ void withLock(Runnable action); /** * Runs the given action while holding the associated resource lock, blocking until the lock can be acquired. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/loader/SynchronizedToolingImplementationLoader.java
import org.gradle.tooling.internal.protocol.InternalBuildProgressListener; import java.io.Closeable; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class SynchronizedToolingImplementationLoader implements ToolingImplementationLoader, Closeable { private final Lock lock = new ReentrantLock(); private final ToolingImplementationLoader delegate;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.8K bytes - Viewed (0) -
platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/tooling/internal/provider/serialization/ClassLoaderCache.java
import javax.annotation.Nullable; import javax.annotation.concurrent.ThreadSafe; import java.util.UUID; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; @ThreadSafe @ServiceScope(Scope.Global.class) public class ClassLoaderCache { private final Lock lock = new ReentrantLock(); private final Cache<ClassLoader, ClassLoaderDetails> classLoaderDetails;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 00:13:09 UTC 2024 - 3.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultProjectStateRegistry.java
// Doing so can lead to deadlocks. assertCanMutate(); if (lock.tryLock()) { // Update lock was not contended, can keep holding the project locks return; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 21K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/plan/AbstractExecutionPlanSpec.groovy
final Thread owner = Thread.currentThread() final ProjectInternal project boolean locked final Collection<MockLock> locks MockLock(ProjectInternal project, Collection<MockLock> locks) { this.locks = locks this.project = project } @Override boolean isLockedByCurrentThread() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 24 11:56:02 UTC 2023 - 7.3K bytes - Viewed (0) -
internal/dsync/lock-args_gen_test.go
Klaus Post <******@****.***> 1700528975 -0800
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 4.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/SendPartialResponseThenBlock.java
import java.io.IOException; import java.time.Duration; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; class SendPartialResponseThenBlock implements BlockingHttpServer.BlockingRequest, ResponseProducer { private final byte[] content; private final Lock lock; private final Duration timeout; private final Condition condition;
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/concurrent/src/main/java/org/gradle/internal/concurrent/InterruptibleRunnable.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.concurrent; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * Wraps a runnable so that it can be interrupted. Useful when {@link java.util.concurrent.Future} is not available or its behavior is not desired. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 19:07:35 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceWorkerLeaseTest.groovy
} def "can use worker lease as resource lock"() { def registry = workerLeaseService(1) when: def workerLease = registry.newWorkerLease() coordinationService.withStateLock(lock(workerLease)) then: noExceptionThrown() } def "acquire lease as resource lock blocks when there are no leases available"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 13.2K bytes - Viewed (0)