thread pool won't release thread
This commit is contained in:
parent
6452b469a2
commit
5e72a97a41
@ -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(
|
||||||
|
Reference in New Issue
Block a user