Move the MainContext to HostBridge

We'll use this to create a watchdog timer that shuts down the sockets
when the native host gets terminated.
This commit is contained in:
Robbert van der Helm
2021-05-01 15:06:13 +02:00
parent 564e047b4b
commit b22f207aee
6 changed files with 16 additions and 22 deletions
-8
View File
@@ -28,7 +28,6 @@
#include "../../common/communication/vst2.h"
#include "../../common/configuration.h"
#include "../editor.h"
#include "../utils.h"
#include "common.h"
/**
@@ -96,13 +95,6 @@ class Vst2Bridge : public HostBridge {
*/
Vst2Logger logger;
/**
* The IO context used for event handling so that all events and window
* message handling can be performed from a single thread, even when hosting
* multiple plugins.
*/
MainContext& main_context;
/**
* The configuration for this instance of yabridge based on the `.so` file
* that got loaded by the host. This configuration gets loaded on the plugin