how to send task to browser message loop?

237 views
Skip to first unread message

Feng Tianba

unread,
May 5, 2014, 9:05:31 PM5/5/14
to chromi...@chromium.org
RT,I want to send a task to the browser message loop or the UI message loop,which functions can I use?

Peter Kasting

unread,
May 5, 2014, 9:13:42 PM5/5/14
to fengtia...@gmail.com, Chromium-dev
On Mon, May 5, 2014 at 6:05 PM, Feng Tianba <fengtia...@gmail.com> wrote:
RT,I want to send a task to the browser message loop or the UI message loop,which functions can I use?

PostTask() and friends?

PK 

Lei Zhang

unread,
May 5, 2014, 9:20:06 PM5/5/14
to fengtia...@gmail.com, Chromium-dev
http://www.chromium.org/developers/design-documents/threading might be
a good read.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev

Feng Tianba

unread,
May 6, 2014, 4:19:56 AM5/6/14
to chromi...@chromium.org, fengtia...@gmail.com
I use these code to create my application,
int main(void)
{
  content::ShellMainDelegate delegate;
  content::ContentMain(argc, argv, &delegate);

.......
}
On Linux platform,Chrome use GTK to create the window,and content,but for me ,I use Frambuffer, I just want to send a message to the browser main loop, when the browser receive my message ,the whole process could quit and release the whole resources,


在 2014年5月6日星期二UTC+8上午9时13分42秒,Peter Kasting写道:

Feng Tianba

unread,
May 6, 2014, 4:21:09 AM5/6/14
to chromi...@chromium.org, fengtia...@gmail.com
Yes,I have read that goog post,But I still do not know how to write my specific code.

在 2014年5月6日星期二UTC+8上午9时20分06秒,Lei Zhang写道:

Thiago Farina

unread,
May 6, 2014, 11:46:40 AM5/6/14
to fengtia...@gmail.com, Chromium-dev
On Tue, May 6, 2014 at 5:21 AM, Feng Tianba <fengtia...@gmail.com> wrote:
Yes,I have read that goog post,But I still do not know how to write my specific code.

OK.

That might be useful for you so:

1) command line arguments - https://codereview.chromium.org/23455025/
4) threads and task runners - https://codereview.chromium.org/23591018/

--
Thiago Farina
Reply all
Reply to author
Forward
0 new messages