Beispiel #1
0
 /// <summary>
 /// 出列任务
 /// </summary>
 public void DequeueTask()
 {
     for (int i = 0; i < queuedTaskList.Count; i++)
     {
         QueuedTask <T> queuedTask = queuedTaskList[i];
         T task = queuedTask.DequeueTask();
         if (task != null && !taskList.Contains(task))
         {
             AddTask(task);
             queuedTaskList.RemoveAt(i);
             i--;
         }
     }
 }
Beispiel #2
0
 public void DequeueTask()
 {
     for (int i = 0; i < queuedTaskList.Count; i++)
     {
         QueuedTask <T> queuedTask = queuedTaskList[i];
         T task = queuedTask.DequeueTask();
         if (task != null)
         {
             AddTask(task);
             queuedTaskList.RemoveAt(i);
             i--;
             CMDebug.TextPopupMouse("Task Dequeue");
         }
     }
 }