So what is `tasks` and when `tasks` would be posted to a worker thread? By 
my understanding, v8 self doesn't has an event loop, the event loop 
mechanism should be provided by upper level codes. Am I wrong? I'm a newbie 
to v8.

在 2015年10月13日星期二 UTC+8下午3:07:12,Jochen Eisinger写道:
>
> V8 posts certain tasks to the foreground message loop. If you don't 
> implement one yourself and expose it via a custom v8::Platform, you'll have 
> to pump the message loop of the default platform from time to time to 
> execute those tasks.
>
> V8 also posts tasks to background threads - those threads will pump their 
> own message loops
>
> best
> -jochen
>
> On Tue, Oct 13, 2015 at 6:41 AM Jane Chen <[email protected] <javascript:>> 
> wrote:
>
>> Looking at v8 4.7.0, both shell.cc and d8.cc calls:
>>
>> while (v8::platform::PumpMessageLoop(platform, isolate)) continue;
>>
>> after running a script.  What's the purpose of this?
>>
>> As always, thanks in advance.
>>
>>
>> -- 
>> -- 
>> v8-users mailing list
>> [email protected] <javascript:>
>> 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] <javascript:>.
>> 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.

Reply via email to