public ThreadSafeDictionary() { this.dictionaryLock = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock }
public ThreadSafeStackList() { this.lockObj = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock }
public ReadLock(ReaderWriterLockSlim locks) : base(locks) { Locks.GetReadLock(this._Locks); }
public override void Dispose() { Locks.ReleaseWriteLock(this._Locks); GC.SuppressFinalize(this); }
public ThreadSafeQueue() { this.objLock = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock }
public ThreadSafeHashSet() { this.hashLock = Locks.GetLockInstance(LockRecursionPolicy.NoRecursion); //setup the lock }