예제 #1
0
 internal void Open(VersionToken versionToken)
 {
     if (Interlocked.CompareExchange(ref _free, 0, 1) == 1)
     {
         _versionToken = versionToken;
     }
 }
예제 #2
0
 internal LockSlot(LockContext <T> context, int id, VersionToken versionToken)
 {
     _context      = context ?? throw new ArgumentNullException(nameof(context));
     _versionToken = versionToken;
     Id            = id;
 }