cancelled = set;
synchronized (CANCELLED_LOCK) { cancelled = set; }
    public synchronized void setCancelled(boolean set) {        if (set) {            interrupt();// if the layerWorker is busy, stop it.        }        cancelled = set;    }