- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for enterWhen (0.04 sec)
-
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
Monitor monitor = this.monitor; if (monitor.enterWhen(notEmpty, timeout, unit)) { try { return extract(); } finally { monitor.leave(); } } else { return null; } } @CanIgnoreReturnValue @Override public E take() throws InterruptedException { Monitor monitor = this.monitor; monitor.enterWhen(notEmpty); try { return extract();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
} @CanIgnoreReturnValue // pushed down from class to method @Override public @Nullable E poll(long timeout, TimeUnit unit) throws InterruptedException { Monitor monitor = this.monitor; if (monitor.enterWhen(notEmpty, timeout, unit)) { try { return q.poll(); } finally { monitor.leave(); } } else { return null; } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 18.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Monitor.java
* * public V get() throws InterruptedException { * monitor.enterWhen(valuePresent); * try { * V result = value; * value = null; * return result; * } finally { * monitor.leave(); * } * } * * public void set(V newValue) throws InterruptedException { * monitor.enterWhen(valueAbsent); * try { * value = newValue; * } finally {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 42.8K bytes - Viewed (0)