Hi Joseph,

Sorry for the delayed reply.

I would point you to the more beefed up d8 shell (d8.cc) as an
example. d8 takes advantage of isolates, which seems to be exactly
what you need. You can assign a context to each isolate (see
SourceGroup::ExecuteInThread) and run them in (pseudo-)parallel
threads. As for the object template, you can always create a new one
like in Shell::CreateGlobalTemplate() and extend it further down the
line before initializing a new context with it.

I hope this helps.

Yang


On Nov 17, 8:40 am, Joseph <[email protected]> wrote:
> Not really sure if i'm approaching this the right way but i'll try to
> explain the best I can.
>
> Trying to have multiple scripts run without sharing the same context,
> but also having different properties depending on the type of script
> it is. All scripts share some sort of base properties, so I created a
> global ObjectTemplate and setup the global functions, and global
> variables.
>
> Trying to figure out how to make a new ObjectTemplate based on the
> global template in order to define the specific properties for each.
>
> Like I said i'm not really sure if i'm doing this right and have tried
> searching with no luck so I figure i'm approaching this situation
> wrong.
>
> Looking forward to replies, thanks

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to