restore thread counts
This commit is contained in:
parent
9fd125dd77
commit
256cdc2c09
@ -218,7 +218,7 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
|
|||||||
auto ideal_th_count = QThread::idealThreadCount();
|
auto ideal_th_count = QThread::idealThreadCount();
|
||||||
|
|
||||||
if (ideal_th_count > 1) {
|
if (ideal_th_count > 1) {
|
||||||
QThreadPool::globalInstance()->setMaxThreadCount((std::min)(128, 4));
|
QThreadPool::globalInstance()->setMaxThreadCount((std::min)(32, 2 * ideal_th_count));
|
||||||
}
|
}
|
||||||
|
|
||||||
QThreadPool::globalInstance()->setExpiryTimeout(120000);
|
QThreadPool::globalInstance()->setExpiryTimeout(120000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user