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.

Reply via email to