summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventdispatcher_wasm_p.h
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2021-09-17 11:40:14 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2021-11-04 09:23:11 +0200
commit6d039a5e7675542103d6fad8fcc38d6c17d26e20 (patch)
tree761b7ceb7d6f3150c16e46fd407d5a9635ce42f1 /src/corelib/kernel/qeventdispatcher_wasm_p.h
parent63feecfc11640d66b6b0c663f97ffcc0abfb6181 (diff)
wasm: enable event dispatcher asyncify support
Misc. fixes, including: Fix a couple of typos in the JavaScript code. Also, macros- within-macros don’t work, (without resorting to preprocessor token pasting), so remove the debug output for now. Limit the exec() “simulateInfiniteLoop” workaround to top-level application exec() only. This way, asyncify can be used for nested QEventLoop::exec() calls. (Emscripten supports one level of suspend only, so we don’t want to use that for the top-level exec(), but instead use it for dialogs and such). Use the new QEventLoop::ProcessEventsFlag::ApplicationExec enum value to detect the exec() call type. Change-Id: Ic702bfc31faf2e9f84ac5d3ccf43d067c5c61bf0 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_wasm_p.h')
-rw-r--r--src/corelib/kernel/qeventdispatcher_wasm_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_wasm_p.h b/src/corelib/kernel/qeventdispatcher_wasm_p.h
index 7eea28b052..4325481c62 100644
--- a/src/corelib/kernel/qeventdispatcher_wasm_p.h
+++ b/src/corelib/kernel/qeventdispatcher_wasm_p.h
@@ -90,7 +90,7 @@ private:
bool isMainThreadEventDispatcher();
bool isSecondaryThreadEventDispatcher();
- void handleEventLoopExec();
+ void handleApplicationExec();
void handleDialogExec();
void pollForNativeEvents();
bool waitForForEvents();