summaryrefslogtreecommitdiffstats
path: root/tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2025-08-25 16:00:26 +0200
committerMorten Sørvig <morten.sorvig@qt.io>2025-11-03 15:22:24 +0200
commitb06fc757661ce00da422e099eb8ff7ed51ba65ac (patch)
treea80a8b49c6d49ace96b5e55ad4c215b0d64b4c5c /tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp
parent77ccbd61f09c17d47b153bff41dd4a6bf7da0557 (diff)
wasm: implement exclusive suspend mode
This mode supports suspending the instance while waiting for a single event only. All other events are queued for later delivery. This is useful for async calls made behind synchronous API, where we don't want to run general event processing while the instance is waiting for the async call to complete. This is for example the case for file read() type calls. Change-Id: I8a8e8b15fea7a60a6bf069812294447505bdc717 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io>
Diffstat (limited to 'tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp')
-rw-r--r--tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp b/tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp
index ec03c7209a4..1e49847c97f 100644
--- a/tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp
+++ b/tests/manual/wasm/qtwasmtestlib/qtwasmtestlib.cpp
@@ -127,7 +127,7 @@ void passTest()
EMSCRIPTEN_BINDINGS(qtwebtestrunner) {
emscripten::function("cleanupTestCase", &cleanupTestCase);
emscripten::function("getTestFunctions", &getTestFunctions);
- emscripten::function("runTestFunction", &runTestFunction);
+ emscripten::function("runTestFunction", &runTestFunction, emscripten::async());
emscripten::function("qtWasmFail", &failTest);
emscripten::function("qtWasmPass", &passTest);
}