public void Remove(ManagedThreadPool pool) { lock (loker) { ToBeRemoved.Enqueue(pool); } }
public ManagedThreadTimer(int onhold, int time, System.Threading.TimerCallback callback, ManagedThreadPool pool, object obj) { T = DateTime.Now; OnHold = onhold; Obj = obj; Time = time; Callback = callback; Pool = pool; pool.Add(this); }
public void Add(ManagedThreadPool pool) { lock (loker) { ToBeAdded.Enqueue(pool); } }