예제 #1
0
 /// <summary>
 /// Push in the new work to the work pool.
 /// </summary>
 /// <param name="work">the new work to put into the work pool.</param>
 public void Push(BaseJob work)
 {
     m_workPool.Enqueue(work);
     if (m_lifePolicy == ThreadLifePolicy.SUSPEND_AFTER_WORK)
     {
         Resume();
     }
 }