예제 #1
0
 internal void EnqueueRequest(LockRequest lockRequest)
 {
     if (lockRequest == null)
     {
         throw new ArgumentNullException("lockRequest");
     }
     lock (requests) {
         requests.Add(lockRequest);
     }
 }
예제 #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");
         }
     }
 }
예제 #3
0
파일: LockManager.cs 프로젝트: vebin/BD2
 internal void EnqueueRequest(LockRequest lockRequest)
 {
     if (lockRequest == null)
         throw new ArgumentNullException ("lockRequest");
     lock (requests) {
         requests.Add (lockRequest);
     }
 }
예제 #4
0
파일: LockManager.cs 프로젝트: vebin/BD2
 /// <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");
         }
     }
 }
예제 #5
0
파일: LockManager.cs 프로젝트: vebin/BD2
 public void ProcessRequest(LockRequest LR)
 {
     throw new NotImplementedException ();
 }
예제 #6
0
 public void ProcessRequest(LockRequest LR)
 {
     throw new NotImplementedException();
 }