示例#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();
 }