public boolean isCancelled() {lock.lock();try {return pm.isCancelled();} finally {lock.unlock();}}

public boolean isCancelled ( ) { lock . lock ( ) ; try { return pm . isCancelled ( ) ; } finally { lock . unlock ( ) ; } }
public override bool IsCancelled(){Lock.Lock();try{return pm.IsCancelled();}finally{Lock.Unlock();}}
