various improvements to import process and project management

This commit is contained in:
itsmattkc
2019-07-01 15:40:09 -07:00
parent 8f6cb7a2cb
commit 0966b62f29
14 changed files with 104 additions and 20 deletions
+4 -1
View File
@@ -70,15 +70,18 @@ void TaskManager::StartNextWaiting()
Task* t = tasks_.at(i);
if (t->status() == Task::kWorking) {
// Task is active, add it to the count
working_count++;
} else if (t->status() == Task::kWaiting) {
// Task is waiting and we have available threads, try to start it
if (t->Start()) {
// If it started correctly, add it to the working count
// If it started, add it to the working count
working_count++;
}
}
// Check if the count exceeds our maximum threads, if so stop here