public void waiterNotify(Object notifier){
synchronized (notifier) {
    notifier.notifyAll();
  }
}

public void waiterNotify ( Object notifier ) { synchronized ( notifier ) { notifier . notifyAll ( ) ; } }
wake up any threads waiting on this notifier . in general , because there is no wakeup - waiting flag , this method must be called from a thread that holds a lock that conflicts with the lock that the waiter was holding . if the waiter calls writerwait , then waiternotify can be called either under a readlock or a writelock , but if the waiter calls readerwait , then waiternotify should only be called under a writelock .
