Example #1
0
 /// <summary>
 /// 重置当前线程任务
 /// </summary>
 private void RunCurrentTask(TaskBaseInfo taskBaseInfo)
 {
     if (!(this._continueTimer != -1 && taskBaseInfo.GetStagnationTotalMilliseconds() > this._continueTimer))
     {
         taskBaseInfo.Reset();
     }
 }
Example #2
0
 /// <summary>
 /// 检查线程是否可以被销毁
 /// </summary>
 /// <param name="taskBaseInfo"></param>
 /// <returns></returns>
 private bool CheckIsDestroy(TaskBaseInfo taskBaseInfo)
 {
     return(this._continueTimer != -1 && taskBaseInfo.GetStagnationTotalMilliseconds() > this._continueTimer);
 }