taskmanager: restore one task per thread at idlepriority

This commit is contained in:
itsmattkc
2020-02-21 14:21:32 +11:00
parent e74c4c2d1c
commit f769e88e6d
+1 -2
View File
@@ -29,8 +29,7 @@ TaskManager::TaskManager() :
active_thread_count_(0)
{
// Initialize threads to run tasks on
//threads_.resize(QThread::idealThreadCount());
threads_.resize(1);
threads_.resize(QThread::idealThreadCount());
for (int i=0;i<threads_.size();i++) {
QThread* t = new QThread(this);