Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for notifyAll (0.21 sec)

  1. android/guava/src/com/google/common/util/concurrent/Monitor.java

     *       wait();
     *     }
     *     V result = value;
     *     value = null;
     *     notifyAll();
     *     return result;
     *   }
     *
     *   public synchronized void set(V newValue) throws InterruptedException {
     *     while (value != null) {
     *       wait();
     *     }
     *     value = newValue;
     *     notifyAll();
     *   }
     * }
     * }</pre>
     *
     * <h3>{@code ReentrantLock}</h3>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

            return shutdown;
          }
        }
    
        @Override
        public void shutdown() {
          synchronized (lock) {
            shutdown = true;
            if (runningTasks == 0) {
              lock.notifyAll();
            }
          }
        }
    
        // See newDirectExecutorService javadoc for unusual behavior of this method.
        @Override
        public List<Runnable> shutdownNow() {
          shutdown();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
Back to top