public TaskBase GetTask(int Index) { TaskBase Task = null; if (Tasks_[Index].Count > 0) { Task = Tasks_[Index].Pop(); } return(Task); }
public void PushTask(int Index, TaskBase Task) { Device_.GetProfiler().Increase(ProfilerElementType.TaskCount); Tasks_[Index].Push(Task); }