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.