Commit 29436c39 authored by Eike Ziller's avatar Eike Ziller

runAsync: Set thread priority also when not running in thread pool

Change-Id: I527610cd1d5ed2daf66aa01073e1a001ec56641e
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 335b9644
......@@ -828,7 +828,7 @@ runAsync(QThreadPool *pool, QThread::Priority priority, Function &&function, Arg
auto thread = new Internal::RunnableThread(job);
thread->moveToThread(qApp->thread()); // make sure thread gets deleteLater on main thread
QObject::connect(thread, &QThread::finished, thread, &QObject::deleteLater);
thread->start();
thread->start(priority);
}
return future;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment