- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getHoldCount (0.18 sec)
-
subprojects/core/src/main/java/org/gradle/api/internal/initialization/DefaultBuildLogicBuildQueue.java
} @SuppressWarnings("try") private <T> T withBuildLogicQueueLock(Supplier<T> buildAction) { lock.lock(); try { final boolean firstLockHolder = lock.getHoldCount() == 1; if (firstLockHolder) { // lock file at the top of the callstack only try (FileLock ignored = lockBuildLogicQueueFile()) { return buildAction.get(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 16 23:00:15 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Monitor.java
public void leave() { final ReentrantLock lock = this.lock; try { // No need to signal if we will still be holding the lock when we return if (lock.getHoldCount() == 1) { signalNextWaiter(); } } finally { lock.unlock(); // Will throw IllegalMonitorStateException if not held } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 18:22:01 UTC 2023 - 38.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Monitor.java
public void leave() { final ReentrantLock lock = this.lock; try { // No need to signal if we will still be holding the lock when we return if (lock.getHoldCount() == 1) { signalNextWaiter(); } } finally { lock.unlock(); // Will throw IllegalMonitorStateException if not held } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 18:22:01 UTC 2023 - 42.5K bytes - Viewed (0)