Beispiel #1
0
 /// <summary>
 /// 超时切换任务线程
 /// </summary>
 /// <param name="threadArray">超时切换任务线程集合</param>
 protected TaskSwitchThreadBase(TaskSwitchThreadArrayBase threadArray)
 {
     this.threadArray     = threadArray;
     CurrentTaskTimestamp = threadArray.NoSwitchTimestamp;
     WaitHandle.Set(0);
     ThreadPool.TinyBackground.FastStart(this, AutoCSer.Threading.ThreadTaskType.TaskSwitchThreadRun);
 }
Beispiel #2
0
 /// <summary>
 /// 超时切换任务线程
 /// </summary>
 /// <param name="threadArray">超时切换任务线程集合</param>
 protected TaskSwitchThread(TaskSwitchThreadArrayBase threadArray) : base(threadArray)
 {
 }