Hi,

I know theres been some discussion lately about users wanting to have
multiple independent V8 instances that can be accessed from multiple
threads without global locking.

I'd like the same; V8 is such a clean piece of code (aside from this
one issue ;-) that I'd love to use it, but I really do need to call
multiple instances from multiple threads without one global per-
process lock (of course, a lock per V8 instance would be fine).

Now, I expect this is naive of me, but I notice there is lots of
static data in the codebase. if I were to refactor this into some kind
of 'GlobalContext' class, could I not simply instantiate multiple of
those GlobalContexts without them interfering with each other? Or is
there funky stuff to do with thread local storage or something else
that would make this fail?

Best regards,
Steve.

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to