Skip to content
Snippets Groups Projects
Commit f7c57919 authored by Pierre Lamot's avatar Pierre Lamot Committed by Hugo Beauzée-Luyssen
Browse files

qt: fix first task not scheduled when using named queue in MLThreadPool

parent 88c1e530
No related branches found
No related tags found
1 merge request!1171qt: fix first task not scheduled when using named queue in MLThreadPool
Pipeline #178123 passed with stage
in 13 minutes and 19 seconds
......@@ -74,6 +74,7 @@ void MLThreadPool::start(QRunnable* task, const char* queue)
else
{
m_serialTasks[queue] = QQueue<QRunnable*>();
m_serialTasks[queue].push_back(task);
auto serialTasks = new MLThreadPoolSerialTask(this, queue);
serialTasks->setAutoDelete(false);
m_threadpool.start(serialTasks);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment