We are playing around with Emscripten's pthread support for WebAssembly, 
where we call the module's callMain from a worker and use the 
PROXY_TO_PTHREAD=1 setting to have it spin up a proxy thread for main. 

However, we noticed that the actual main worker does never process any 
calls that are dispatched from the proxy thread. After a bit of poking 
around, we found that emscripten_main_thread_process_queued_calls (in 
library_pthread.c) checks that it is in the main browser thread 
(emscripten_is_main_browser_thread). Why is that so? Wouldn't it be 
sufficient to check for emscripten_is_main_runtime_thread?

Soeren

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to