thread pool won't release thread

This commit is contained in:
王劲鹏 2021-04-15 10:47:49 +08:00 committed by osborn
parent 6452b469a2
commit 5e72a97a41

View File

@ -17,6 +17,7 @@
DoricJSEngine::DoricJSEngine(QObject *parent) : QObject(parent) { DoricJSEngine::DoricJSEngine(QObject *parent) : QObject(parent) {
mJSThreadPool.setMaxThreadCount(1); mJSThreadPool.setMaxThreadCount(1);
mJSThreadPool.setExpiryTimeout(-1);
{ {
auto result = QtConcurrent::run( auto result = QtConcurrent::run(