add v8 executor & default executor

This commit is contained in:
王劲鹏
2021-03-31 10:36:45 +08:00
committed by osborn
parent 500df331fc
commit 8bb7fdb66b
11 changed files with 570 additions and 151 deletions

View File

@@ -17,8 +17,12 @@
DoricJSEngine::DoricJSEngine(QObject *parent) : QObject(parent) {
mJSThreadPool.setMaxThreadCount(1);
mJSThreadPool.setStackSize(3000000000);
QtConcurrent::run(&mJSThreadPool, [this] { mJSE = new DoricNativeJSE(); });
QtConcurrent::run(&mJSThreadPool, [this] {
qDebug() << QThread::currentThread()->stackSize();
mJSE = new DoricNativeJSE();
});
QtConcurrent::run(&mJSThreadPool, [this] {
// inject env
QScreen *screen = QGuiApplication::primaryScreen();