various improvements to import process and project management
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user