示例#1
0
        public AtomicUnlock(Atomic nblock)
        {
            if (nblock is null)
            {
                throw new ArgumentNullException(nameof(nblock));
            }

            internal_lock = nblock;
        }
示例#2
0
 public bool TryUnlock()
 {
     Atomic.Unlock(ref _Lock);
     return(true);
 }
示例#3
0
 public bool TryLock() => Atomic.Lock(ref _Lock);