예제 #1
0
 public ThreadSafeDictionary()
 {
     this.dictionaryLock = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock
 }
예제 #2
0
 public ThreadSafeStackList()
 {
     this.lockObj = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock
 }
예제 #3
0
 public ReadLock(ReaderWriterLockSlim locks)
     : base(locks)
 {
     Locks.GetReadLock(this._Locks);
 }
예제 #4
0
 public override void Dispose()
 {
     Locks.ReleaseWriteLock(this._Locks);
     GC.SuppressFinalize(this);
 }
예제 #5
0
 public ThreadSafeQueue()
 {
     this.objLock = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock
 }
예제 #6
0
 public ThreadSafeHashSet()
 {
     this.hashLock = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock
 }