Hello,
I have an application that first creates and setups a WebSocket, like
this:
ws = emscripten::val::global("WebSocket").new_(emscripten::val(...));
ws.set("onopen", emscripten::val::module_property("onopen"));
ws.set("onmessage", emscripten::val::module_property("onmessage"));
and then it sets a main loop with emscripten_set_main_loop(...).
Everything works fine right now as there are no shared resouces between
onopen/onmessage and the code that is run in the main loop, but in the
future it will be.
Is my application multi-threaded? Can the onopen/onmessage event fire
and execute at the same time as my main loop? Answers online are mostly
old and says that there are no multi-threading in browser JavaScript,
but what about web workers? Are they involved in this scenario?
- Simon
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/20191002122818.7pjxllqnqrc3nayz%40simon-laptop.