V8 has a preemption mechanism to support several threads sharing V8. V8 can only have one thread active at the time, but the preemption mechanism can be used to switch between several. Take a look at the classes Locker and Unlocker in include/v8.h. Regards, Søren
On Thu, Dec 18, 2008 at 3:31 AM, Petar Maymounkov <[email protected]> wrote: > > Hi all, > > I was wondering if there is a way (perhaps a hack) to interrupt > a running JS script and save its execution environment so it > can be continued at a later time. In the meantime, I would like to > be able to run other JS functions in the same context. > > Thanks, > Petar > > > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
