Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sandbox (0.29 sec)

  1. android/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.
     *
     * <pre>{@code
     * public class SafeBox<V> {
     *   private V value;
     *
     *   public synchronized V get() throws InterruptedException {
     *     while (value == null) {
     *       wait();
     *     }
     *     V result = value;
     *     value = null;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 18:22:01 UTC 2023
    - 38.6K bytes
    - Viewed (0)
  2. 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.
     *
     * <pre>{@code
     * public class SafeBox<V> {
     *   private V value;
     *
     *   public synchronized V get() throws InterruptedException {
     *     while (value == null) {
     *       wait();
     *     }
     *     V result = value;
     *     value = null;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 18:22:01 UTC 2023
    - 42.5K bytes
    - Viewed (0)
Back to top