--proxy-to-worker and -s USE_PTHREADS=1/2 should be compatible, so pthreads can be used either with or without proxying. There is however a large chunk of work remaining in making sure all of our runtime APIs themselves are compatible with --proxy-to-worker, that is something I have a TODO about, and the latest when Wasm pthreads are close to landing, we'll need to make that setup work as well. In the meanwhile, there may be a need to manually proxy things around if a particular API doesn't seem to cooperate.
2017-02-27 11:45 GMT-08:00 Alon Zakai <[email protected]>: > Actually I am pretty sure Jukka got that working a few months ago. If it > doesn't work for you, please file an issue with a testcase and cc him > (@juj). > > On Fri, Feb 24, 2017 at 9:57 PM, Sören Balko <[email protected]> > wrote: > >> Am I right to assume that PROXY_TO_WORKER does not work with the >> USE_PTHREADS option? >> >> >> On Friday, 24 February 2017 22:32:19 UTC+10, Sören Balko wrote: >>> >>> With the next version of Firefox landing SharedArrayBuffer (yaiiih!), I >>> have started looking into emscripten's POSIX thread support. With >>> WebAssembly still not quite there, this is a brilliant stop-gap measure to >>> enhance performance (if only SIMD.js would finally land). >>> >>> So far, I am running my emscripten module in a worker. This is largely >>> due to the fact that it constitutes large chunks of synchronous code. I >>> would love to keep this setup as is and use the thread-enabled build as a >>> drop-in replacement in supporting browsers. Alas, browsers other than >>> Firefox do not support starting workers from within a worker (Chrome and >>> Opera do not, at the least). >>> >>> Hence I am wondering if that setup (=running main thread in worker) >>> could be enabled by proxying all calls that interact with the Javascript >>> Worker object to some onmessage event handler running in the Javascript UI >>> thread. >>> >>> >>> -- >> 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. >> > > -- > 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. > -- 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.
