bool disposed = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (disposed) { return; } disposed = true; if (disposing) { internal_lock.Unlock(); //base.Dispose(); } }
public bool TryUnlock() { Atomic.Unlock(ref _Lock); return(true); }