logic: moved task waiting

* moved waiting from TaskInjectStorage to TaskGroupParallel so that the tasks that run here have the same conditions as tasks running in the TaskScheduler
This commit is contained in:
malte_langkabel
2016-09-15 12:51:06 +02:00
parent 5680bf7b25
commit 136042d047
5 changed files with 24 additions and 19 deletions
-4
View File
@@ -1,8 +1,5 @@
#include "data/TaskInjectStorage.h"
#include <chrono>
#include <thread>
#include "data/Storage.h"
#include "data/StorageProvider.h"
#include "utility/scheduling/Blackboard.h"
@@ -37,7 +34,6 @@ Task::TaskState TaskInjectStorage::doUpdate(std::shared_ptr<Blackboard> blackboa
{
if (indexerCount > 0)
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
return STATE_SUCCESS;
}
}