synchronized (root) { nextUpdate = System.currentTimeMillis() + UPDATE_DELAY; updateNeeded = true; root.notify(); }
synchronized (root) { nextUpdate = System.currentTimeMillis() + UPDATE_DELAY; updateNeeded = true; root.notify();
    private void update() {        synchronized (root) {            nextUpdate = System.currentTimeMillis() + UPDATE_DELAY;            updateNeeded = true;            root.notify();        }    }