You could probably save yourself a bunch of time and effort if, rather than performing synchronous threaded operations, you just loaded the other scripts on the main thread.
On Tuesday, June 10, 2014 8:38:05 AM UTC-7, juu wrote: > > The main thread initialize v8 : create its isolate, context, script etc .. > When the main script is ready, the current isolate is locked and the > script is run. > > Once a " *require(anotherScript)* " is encoutered (in my main script), > another thread is created and is in charge of loading *anotherScript *and > execute it as soon as possible. > > My problem is that the main thread lock the current isolate until the > whole main script is executed. Which let no chance to *anotherScript *to > be called asynchronously ; actually it's always executed synchronously > since *anotherScript *manage to Lock the current isolate only once the > main thread is finished and unlock the current isolate. > > -- -- 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.
