On Thu, Jul 3, 2014 at 2:56 PM, Jesper Jansson <[email protected]> wrote:
> Is it possible to have 2 different threads working on the same isolate > No. > if they never access each others values. I'm currently working on a game > engine where I want to be able to stream new map while the player can still > play on the old map where it change map when everything is loaded. During > the period the map is loaded it will only create new Objects that the user > can only reach when the scene is fully loaded and by then the scene will be > joined again. Also no JavaScript will be required by the thread streaming > the scene other then creating new objects from c++. The only problem I can > see is that they may access the same FunctionTemplate that I know will > never be destroyed. > > Den fredagen den 31:e januari 2014 kl. 10:23:28 UTC+1 skrev Jochen > Eisinger: >> >> There are two options: (1) use different isolates on each thread (then >> the scripts can run in parallel) and (2) use one isolate and use v8::Locker >> to lock the isolate before you use it (then only one thread at a time can >> execute scripts) >> >> best >> -jochen >> >> >> On Fri, Jan 31, 2014 at 9:51 AM, Sara Abdelhameed <[email protected] >> > wrote: >> >>> Hello all, >>> does v8 engine support multithreaded application ? and could I run two >>> different javascript code in two different threads at the same time ? >>> >>> -- >>> -- >>> v8-users mailing list >>> [email protected] >>> >>> http://groups.google.com/group/v8-users >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "v8-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
