public AsyncDirectPendingLockSlab(MutexSlim mutex)
 {
     _mutex = mutex;
     _items = new State[SlabSize];
 }
Beispiel #2
0
 public AsyncDirectPendingLockSlab(MutexSlim mutex)
 {
     _mutex  = mutex;
     _tokens = new int[SlabSize];
     _continuationsAndState = new object[SlabSize * 2];
 }
 public AsyncTaskPendingLockToken(MutexSlim mutex) : base(
         mutex.IsThreadPool ? TaskCreationOptions.RunContinuationsAsynchronously : TaskCreationOptions.None)
     => _mutex = mutex;
 internal LockToken(MutexSlim parent, int token)
 {
     _parent = parent;
     _token  = token;
 }