Example #1
0
 public void ExitLatch(PagePosition page)
 {
     if (LatchLocks.Remove(page, out var latchLock))
     {
         latchLock.Dispose();
     }
 }
Example #2
0
        public LatchScope PopLatch(BufferEntry buffer)
        {
            if (LatchLocks.Remove(buffer.Position, out var latchLock))
            {
                return(latchLock);
            }

            return(null);
        }