- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SafeBox (0.06 sec)
-
guava/src/com/google/common/util/concurrent/Monitor.java
* {@code notifyAll()} must be used instead of {@code notify()} because there are two different * logical conditions being awaited. * * {@snippet : * public class SafeBox<V> { * private V value; * * public synchronized V get() throws InterruptedException { * while (value == null) { * wait(); * } * V result = value; * value = null;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 42.8K bytes - Viewed (0)