Is it thread-safe to use MultiThreadMsgLoop method in OSRMod

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.

Is it thread-safe to use MultiThreadMsgLoop method in OSRMod

Postby mung » Wed Aug 29, 2018 2:07 am

Hi~

Can I ask about MultiThreadMessageLoop?
Is it thread-safe to use MultiThreadMessageLoop method in OSRMode?

When I use MultiThreadMessageLoop in OSRMode, Is it thread-safe to send MouseEvent and KeyEvent in mainThread?
Or I can't use MultiThreadMessageLoop in OSRMode?

Of course, I executed CefInitalize() function in mainThread.

I just wonder that.

thank you :)
mung
Mentor
 
Posts: 58
Joined: Wed Jan 04, 2017 12:20 am

Re: Is it thread-safe to use MultiThreadMsgLoop method in OS

Postby Czarek » Wed Aug 29, 2018 2:30 am

SendMouseMoveEvent and similar can be called on any thread. You can run the cefclient sample application in OSR mode with multi threaded message loop with this command:

Code: Select all
cefclient.exe --off-screen-rendering-enabled --multi-threaded-message-loop
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Is it thread-safe to use MultiThreadMsgLoop method in OS

Postby mung » Wed Aug 29, 2018 3:15 am

Czarek wrote:SendMouseMoveEvent and similar can be called on any thread. You can run the cefclient sample application in OSR mode with multi threaded message loop with this command:

Code: Select all
cefclient.exe --off-screen-rendering-enabled --multi-threaded-message-loop


Thank you for your answer :)
mung
Mentor
 
Posts: 58
Joined: Wed Jan 04, 2017 12:20 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 94 guests