public synchronized boolean isCancelled() { return cancelled;
public boolean isCancelled() { boolean ret = false; synchronized (CANCELLED_LOCK) { ret = cancelled; } return ret;
    public synchronized boolean isCancelled() {        return cancelled;    }