The worker commands onmessage and postmessage I personally emulated through programming the corresponding event handlers in C++. How I get it, workers don't exist in V8 and would have to be implemented through 3rd party plugins. Here is the response I got on my question on whether web workers were feasable: http://stackoverflow.com/questions/2277 ... ipt-engineop12no2 wrote:Thanks for the update. If only V8 workers could fire up sub-workers, there would be no problem.
I was wondering if the engine could listen on an event handler (like it would with browsers) without a worker, allowing the engine to fire off a worker, but jsUCI would have to poll for comms(?) and it's all a but ugly perhaps.
The same way how I programmed the event handlers one could also add a command for spawning workers, but this is obviously more complex than the commands obove.