예제 #1
0
        public void NewTask(PTTimePair start, PTTimePair end)
        {
            var task = new SimpleTask(start, end);

            ParallelTasker.AddTask(start, end, task.OnInitialize, task.Execute, task.OnFinalize, m_period);
            PTLogger.Warning($"Added {task}");
            m_tasks.Add(task);
        }
예제 #2
0
 public void ClearTasks()
 {
     ParallelTasker.ClearTasks();
     m_tasks.Clear();
     PTLogger.Warning("Cleared all tasks");
 }