Hi all,
I need to pass message from main application thread to render process's main thread (TID_RENDERER). Execution of asynchronous process happens in main thread, and the results are sent back to Javascript callback (which can only be run on renderer thread inside a context).
So I need a way to send information to the render thread either directly or indirectly via a new thread in CEf-Render process that can communicate with the TID_RENDERER.
This is the closest to what I was looking for: viewtopic.php?f=6&t=10695
Quoting:
"As long and I can send the data from the libuv thread in the render process to the main render thread via some kind of message or event then I think I'm good."
magreenblatt suggests using WebWorker thread, but it is not found in latest, and reverting back the cef version is not a executable option in my project.
Is there any other known way of message passing from application thread to renderthread, or from render process child thread to render thread, or a way to do the run-loop in CefRenderProcessHandler sub class, to handle the custom message-queue in a while loop ?
The project sets multi_threaded_message_loop to true, hence each thread should be handled separately.
Any help is greatly appreciated.