I see, Thank you , rob.
On 2009-3-27, at 下午10:08, Robert wrote:
No, not directly. They run in completely separate javascript environments. You would have to duplicate the function definition from b.js in a.js. The only way for two workers to communicate is via messages. rob On Mar 27, 8:32 am, Alex <[email protected]> wrote:Hi all, whether one child workerpool can call js function in another child workerpool ? e.x a = WorkerPool.createWorkpoolfromurl('a.js') b = WorkerPool.createWorkpoolfromurl('b.js') Whether the function in a.js can call js function in b.js ? Thank you. Alex
