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