diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-09-13 11:54:55 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-09-13 11:55:38 +0200 |
commit | efe3dc93d6bc3102d7a5d7599df32c1aabc095b0 (patch) | |
tree | 8ad03b5afb3b3078238c5b558191247ca99bd8a7 | |
parent | e83ba4d4ece9dd2206ca67e399d5dfeb881472f7 (diff) | |
download | qt-creator-efe3dc93d6bc3102d7a5d7599df32c1aabc095b0.tar.gz |
Increased the number of threads in the global thread pool.
Reviewed-by: dt
-rw-r--r-- | src/app/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index 08abe59f0f..afc08fc456 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -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 |