Beispiel #1
0
 internal Lock(LockingQueue queue, LockingMode mode, AccessType accessType)
 {
     Queue = queue;
     AccessType = accessType;
     Mode = mode;
     Queue.Acquire(this);
 }
Beispiel #2
0
 internal Lock(LockingQueue queue, LockingMode mode, AccessType accessType)
 {
     Queue      = queue;
     AccessType = accessType;
     Mode       = mode;
     Queue.Acquire(this);
 }
Beispiel #3
0
        private LockingQueue GetQueueFor(ILockable lockable)
        {
            LockingQueue queue;

            if (!queuesMap.TryGetValue(lockable.RefId, out queue))
            {
                queue = new LockingQueue(context, lockable);
                queuesMap[lockable.RefId] = queue;
            }

            return(queue);
        }
Beispiel #4
0
 internal Lock(LockingQueue queue, LockingMode mode, AccessType accessType)
 {
     Queue      = queue;
     AccessType = accessType;
     Mode       = mode;
 }
Beispiel #5
0
 public Lock(LockingQueue queue, LockingMode mode, AccessType accessType)
 {
     this.queue = queue;
     this.mode  = mode;
     AccessType = accessType;
 }
Beispiel #6
0
        private LockingQueue GetQueueFor(ILockable lockable)
        {
            LockingQueue queue;

            if (!queuesMap.TryGetValue(lockable.RefId, out queue)) {
                queue = new LockingQueue(Database, lockable);
                queuesMap[lockable.RefId] = queue;
            }

            return queue;
        }
Beispiel #7
0
        private LockingQueue GetQueueFor(ILockable lockable)
        {
            LockingQueue queue;

            // If queue not in hashtable then create a new one and write it into mapping
            if (!queuesMap.TryGetValue(lockable.RefId, out queue)) {
                queue = new LockingQueue(lockable);
                queuesMap[lockable.RefId] = queue;
            }

            return queue;
        }
Beispiel #8
0
 internal Lock(LockingQueue queue, LockingMode mode, AccessType accessType)
 {
     Queue = queue;
     AccessType = accessType;
     Mode = mode;
 }