documented task manager

This commit is contained in:
itsmattkc
2019-06-27 11:23:17 -07:00
parent bf9dd68d58
commit 76eaee65e0
2 changed files with 52 additions and 0 deletions
+3
View File
@@ -32,10 +32,13 @@ TaskManager::TaskManager()
void TaskManager::AddTask(Task* t)
{
// Connect Task's status signal to the Callback
connect(t, SIGNAL(StatusChanged(Task::Status)), this, SLOT(TaskCallback(Task::Status)));
// Add the Task to the queue
tasks_.append(t);
// Scan through queue and start any Tasks that can (including this one)
StartNextWaiting();
}