Morten Sørvig 3c72f99770 wasm: introduce QWasmSuspendResumeControl
QWasmSuspendResumeControl manages transfer of control from
JS to the wasm instance, when the wasm instance is asyncify
suspended.

Supported use cases include registerEventHandler()-type
event handlers, and also JS APIs which take a callback
functions, such as timers and requrestAnimationFrame.

The specific use cases are handled by adapters (not included
in this commit), which call the QWasmSuspendResumeControl API to
register JS/C++ event handler pairs:

  uint32_t index = control->registerEventHandler([](val){ ... });
  val jsHandler = control->jsEventHandler(index);

The C++ handler contains the user code, while the JS handler
can be passed to registerEventHandler or be used as a callback.

Change-Id: Ia1b1fd8884f0906759690dc7bc949c65a0248618
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
2025-03-03 18:24:43 +01:00
2024-11-05 14:36:16 +01:00
2025-02-28 13:51:18 +00:00
2024-11-05 14:36:16 +01:00
2024-12-13 14:54:23 +00:00
2024-06-25 11:44:00 +02:00
2025-02-18 13:58:26 +01:00
2025-02-18 13:58:26 +01:00
Description
Qt Base (Core, Gui, Widgets, Network, ...)
822 MiB
Languages
C++ 84.3%
HTML 4.9%
C 3.9%
CMake 3.6%
Objective-C++ 2%
Other 0.8%