public AtomicUnlock(Atomic nblock) { if (nblock is null) { throw new ArgumentNullException(nameof(nblock)); } internal_lock = nblock; }
public bool TryUnlock() { Atomic.Unlock(ref _Lock); return(true); }
public bool TryLock() => Atomic.Lock(ref _Lock);