Removed processEvents
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
1ac9757a86
commit
35a8ab2393
1 changed files with 1 additions and 4 deletions
|
@ -35,7 +35,6 @@
|
||||||
*/
|
*/
|
||||||
#include "ConcurrentTask.h"
|
#include "ConcurrentTask.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "tasks/Task.h"
|
#include "tasks/Task.h"
|
||||||
|
|
||||||
|
@ -69,7 +68,7 @@ void ConcurrentTask::addTask(Task::Ptr task)
|
||||||
|
|
||||||
void ConcurrentTask::executeTask()
|
void ConcurrentTask::executeTask()
|
||||||
{
|
{
|
||||||
for (auto i = 0; i <= m_total_max_size; i++)
|
for (auto i = 0; i < m_total_max_size; i++)
|
||||||
executeNextSubTask();
|
executeNextSubTask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,8 +132,6 @@ void ConcurrentTask::executeNextSubTask()
|
||||||
}
|
}
|
||||||
|
|
||||||
startSubTask(m_queue.dequeue());
|
startSubTask(m_queue.dequeue());
|
||||||
|
|
||||||
QCoreApplication::processEvents();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConcurrentTask::startSubTask(Task::Ptr next)
|
void ConcurrentTask::startSubTask(Task::Ptr next)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue