Register the Wine host bridge watchdog

It doesn't do anything yet.
This commit is contained in:
Robbert van der Helm
2021-05-01 16:52:05 +02:00
parent d8ca4022d1
commit 131d749ba6
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ HostBridge::HostBridge(MainContext& main_context,
boost::filesystem::path plugin_path)
: plugin_path(plugin_path),
main_context(main_context),
generic_logger(Logger::create_wine_stderr()) {}
generic_logger(Logger::create_wine_stderr()),
watchdog_guard(main_context.register_watchdog(*this)) {}
void HostBridge::handle_win32_events() {
MSG msg;
+7
View File
@@ -125,4 +125,11 @@ class HostBridge {
* @see Logger::create_wine_stderr
*/
Logger generic_logger;
private:
/**
* A guard that, while in scope, will cause `shutdown_if_dangling()` to
* periodically be called.
*/
MainContext::WatchdogGuard watchdog_guard;
};