http://github.com/mschwartz/SIlkJS
You can trivially write JavaScript that calls SilkJS's process.fork() and run robot1.js and robot2.js in distinct processes (separate contexts). On Sep 17, 2012, at 9:43 PM, Paulo Coutinho <[email protected]> wrote: > Hi people, im new here on group. > > I have a small project that integrate SFML and V8 > (https://github.com/prsolucoes/sfml-cmake). > > I have a main class "Engine" that init the SFML and start a thread to execute > the "robot1.js" and "robot2.js" files isolated from main thread. > > I dont know if im creating on correct mode, because the "sleep" method or > anything that take a long time to execute on "thread" is locking the > application. > > You can see here: > https://github.com/prsolucoes/sfml-cmake/blob/master/Engine.cpp > https://github.com/prsolucoes/sfml-cmake/blob/master/Engine.h > > My idea is create a thread that will process "robot1.js" and another thread > that will process "robot2.js". > > Can anyone help me? > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
