Esempio n. 1
0
 internal void EnqueueRequest(LockRequest lockRequest)
 {
     if (lockRequest == null)
     {
         throw new ArgumentNullException("lockRequest");
     }
     lock (requests) {
         requests.Add(lockRequest);
     }
 }
Esempio n. 2
0
 /// <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");
         }
     }
 }
Esempio n. 3
0
 internal void EnqueueRequest(LockRequest lockRequest)
 {
     if (lockRequest == null)
         throw new ArgumentNullException ("lockRequest");
     lock (requests) {
         requests.Add (lockRequest);
     }
 }
Esempio n. 4
0
 /// <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");
         }
     }
 }
Esempio n. 5
0
 public void ProcessRequest(LockRequest LR)
 {
     throw new NotImplementedException ();
 }
Esempio n. 6
0
 public void ProcessRequest(LockRequest LR)
 {
     throw new NotImplementedException();
 }