public void doNotify() throws InterruptedException { synchronized (this) { if (getWaiters() > 0) { acquire(); notify(); release(); } } }
public void doNotify() throws InterruptedException { synchronized (this) { if (getWaiters() > 0) { acquire(); notify(); release(); } } }