I have plugin that is loaded by another app. During a load of my plugin I start a new thread which initializes Cef and performs message loop
- Code: Select all
int myThread (int argc, char* argv[]) {
CefMainArgs main_args(argc, argv);
// Populate this structure to customize CEF behavior.
CefSettings settings;
// Specify the path for the sub-process executable.
CefString(&settings.browser_subprocess_path).FromASCII(“/path/to/subprocess”);
// Initialize CEF in the main process.
CefInitialize(main_args, settings, app.get());
// Run the CEF message loop. This will block until CefQuitMessageLoop() is called.
CefRunMessageLoop();
CefShutdown();
return 0;
}
now, I have the same problem as I had in Windows version which I mentioned here: viewtopic.php?f=6&t=11389
so the question is how to call CefQuitMessageLoop as it has to be the same thread as the one which called CefInitialize. On Windows, I used hidden window, any hint how to achieve it on Mac ?