- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for doIsLocked (0.16 sec)
-
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/ExclusiveAccessResourceLockTest.groovy
when: coordinationService.withStateLock(tryLock(resourceLock)) then: resourceLock.doIsLocked() resourceLock.doIsLockedByCurrentThread() when: coordinationService.withStateLock(unlock(resourceLock)) then: !resourceLock.doIsLocked() !resourceLock.doIsLockedByCurrentThread() } def "can lock a resource that is already locked"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/AbstractTrackedResourceLock.java
coordinationService.getCurrent().registerUnlocked(this); } } } @Override public boolean isLocked() { failIfNotInResourceLockStateChange(); return doIsLocked(); } @Override public boolean isLockedByCurrentThread() { failIfNotInResourceLockStateChange(); return doIsLockedByCurrentThread(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ExclusiveAccessResourceLock.java
owner = null; } @Override protected boolean doIsLockedByCurrentThread() { return owner == Thread.currentThread(); } @Override protected boolean doIsLocked() { return owner != null; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/DefaultLease.java
super(displayName, coordinationService, owner); this.parent = parent; } @Override protected boolean doIsLocked() { return ownerThread != null; } @Override protected boolean doIsLockedByCurrentThread() { return Thread.currentThread() == ownerThread; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/TestTrackedResourceLock.groovy
this.lockedState.set(lockedState) if (hasLock) { this.owner.set(Thread.currentThread()) } } @Override boolean doIsLocked() { return lockedState.get() } @Override boolean doIsLockedByCurrentThread() { return owner.get() == Thread.currentThread() } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.2K bytes - Viewed (0)