Move the host guard handler to PluginBridge

This commit is contained in:
Robbert van der Helm
2020-12-04 00:31:22 +01:00
parent c2d2ac8fbf
commit b9e63ea335
4 changed files with 61 additions and 41 deletions
-9
View File
@@ -148,15 +148,6 @@ class Vst2PluginBridge : PluginBridge<Vst2Sockets<std::jthread>> {
*/
Vst2Logger logger;
/**
* A thread used during the initialisation process to terminate listening on
* the sockets if the Wine process cannot start for whatever reason. This
* has to be defined here instead of in the constructor we can't simply
* detach the thread as it has to check whether the VST host is still
* running.
*/
std::jthread host_guard_handler;
/**
* A scratch buffer for sending and receiving data during `process`,
* `processReplacing` and `processDoubleReplacing` calls.