Calling CefRunMessageLoop from multiple threads

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Calling CefRunMessageLoop from multiple threads

Postby sprabhu » Fri Nov 02, 2018 2:21 pm

Hello,

I'm trying to integrate Cef with my current application. The current design of the application creates multiple threads to handle different urls and I wanted to use cef. I understand that I cannot call CefInitialize multiple times.
My question is can I call CefRunMessageLoop from each of the worker threads so that I have 1 thread per url.

Thanks!
sprabhu
Newbie
 
Posts: 3
Joined: Fri Nov 02, 2018 2:18 pm

Re: Calling CefRunMessageLoop from multiple threads

Postby magreenblatt » Fri Nov 02, 2018 5:24 pm

There is only one main thread, and only one UI thread (they may be the same thread). See https://bitbucket.org/chromiumembedded/ ... er-threads
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 63 guests