示例#1
0
 public void Remove(ManagedThreadPool pool)
 {
     lock (loker)
     {
         ToBeRemoved.Enqueue(pool);
     }
 }
示例#2
0
 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);
 }
示例#3
0
 public void Add(ManagedThreadPool pool)
 {
     lock (loker)
     {
         ToBeAdded.Enqueue(pool);
     }
 }