@Override public void run() { synchronized (myQueue) { isProcessing = false; if (myQueue.isEmpty()) { myQueue.notifyAll(); } else { startProcessing(); } } }
private void wakeUpUnderLock() { filesToResolve.notifyAll(); }