- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for enterWhen (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/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 {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 43.5K bytes - Click Count (0) -
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();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 22.4K bytes - Click Count (0) -
android/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();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 22.4K bytes - Click Count (0)