Hi Guys,
I'm having some trouble when trying to use Pthreads and emBind together.
I have some C++ WASM code that is running on a worker thread (not the main
thread). In the C++ I am doing:
EM_ASM((
Module.test_Func();
));
Where test_Func is a EMBind function
EMSCRIPTEN_BINDINGS(module) {
emscripten::function("test_Func", &test_Func);
}
It seems that the Module object that's present on the worker thread doesn't
have the definitions for the functions exported with EMBind. I'm wondering
if this is a supported use case?
If "Module.test_Func();" is run on the main thread then it works.
I came across https://github.com/emscripten-core/emscripten/pull/8783 which
looked like it was merged into the 2.0.15 release, which I updated to
hoping that this would work, but no luck.
--
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/70ad8407-f767-4529-9525-c97ae8c2f0d5n%40googlegroups.com.