internal void EnqueueRequest(LockRequest lockRequest) { if (lockRequest == null) { throw new ArgumentNullException("lockRequest"); } lock (requests) { requests.Add(lockRequest); } }
/// <summary> /// Dequeue the specified lock. /// </summary> internal void Dequeue(LockRequest lockRequest) { if (lockRequest == null) { throw new ArgumentNullException("lockRequest"); } lock (requests) { if (requests.Contains(lockRequest)) { requests.Remove(lockRequest); } else { throw new AccessViolationException("The specified lock doesn't match the lock used to request the lock"); } } }
internal void EnqueueRequest(LockRequest lockRequest) { if (lockRequest == null) throw new ArgumentNullException ("lockRequest"); lock (requests) { requests.Add (lockRequest); } }
/// <summary> /// Dequeue the specified lock. /// </summary> internal void Dequeue(LockRequest lockRequest) { if (lockRequest == null) throw new ArgumentNullException ("lockRequest"); lock (requests) { if (requests.Contains (lockRequest)) { requests.Remove (lockRequest); } else { throw new AccessViolationException ("The specified lock doesn't match the lock used to request the lock"); } } }
public void ProcessRequest(LockRequest LR) { throw new NotImplementedException (); }
public void ProcessRequest(LockRequest LR) { throw new NotImplementedException(); }