Skip to content
Snippets Groups Projects
Commit efe3dc93 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Increased the number of threads in the global thread pool.

Reviewed-by: dt
parent e83ba4d4
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@
#include <QtCore/QTranslator>
#include <QtCore/QSettings>
#include <QtCore/QVariant>
#include <QtCore/QThreadPool>
#include <QtNetwork/QNetworkProxyFactory>
......@@ -184,6 +185,10 @@ int main(int argc, char **argv)
SharedTools::QtSingleApplication app((QLatin1String(appNameC)), argc, argv);
const int threadCount = QThreadPool::globalInstance()->maxThreadCount();
QThreadPool::globalInstance()->setMaxThreadCount(qMax(4, 2 * threadCount));
#ifdef ENABLE_QT_BREAKPAD
QtSystemExceptionHandler systemExceptionHandler;
#endif
......
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