Replace all threads with Win32Thread in Wine host

This commit is contained in:
Robbert van der Helm
2020-10-27 18:29:38 +01:00
parent bafc36614b
commit 28886e7073
6 changed files with 111 additions and 117 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ void HostProcess::async_log_pipe_lines(patched_async_pipe& pipe,
IndividualHost::IndividualHost(boost::asio::io_context& io_context,
Logger& logger,
fs::path plugin_path,
const Sockets& sockets)
const Sockets<std::jthread>& sockets)
: HostProcess(io_context, logger),
plugin_arch(find_vst_architecture(plugin_path)),
host_path(find_vst_host(plugin_arch, false)),
@@ -130,7 +130,7 @@ void IndividualHost::terminate() {
GroupHost::GroupHost(boost::asio::io_context& io_context,
Logger& logger,
fs::path plugin_path,
Sockets& sockets,
Sockets<std::jthread>& sockets,
std::string group_name)
: HostProcess(io_context, logger),
plugin_arch(find_vst_architecture(plugin_path)),
+4 -4
View File
@@ -25,8 +25,8 @@
#include <boost/process/child.hpp>
#include <thread>
#include "../common/logging.h"
#include "../common/communication.h"
#include "../common/logging.h"
#include "utils.h"
/**
@@ -127,7 +127,7 @@ class IndividualHost : public HostProcess {
IndividualHost(boost::asio::io_context& io_context,
Logger& logger,
boost::filesystem::path plugin_path,
const Sockets& sockets);
const Sockets<std::jthread>& sockets);
PluginArchitecture architecture() override;
boost::filesystem::path path() override;
@@ -169,7 +169,7 @@ class GroupHost : public HostProcess {
GroupHost(boost::asio::io_context& io_context,
Logger& logger,
boost::filesystem::path plugin_path,
Sockets& socket_endpoint,
Sockets<std::jthread>& socket_endpoint,
std::string group_name);
PluginArchitecture architecture() override;
@@ -192,7 +192,7 @@ class GroupHost : public HostProcess {
* The associated sockets for the plugin we're hosting. This is used to
* terminate the plugin.
*/
Sockets& sockets;
Sockets<std::jthread>& sockets;
/**
* A thread that waits for the group host to have started and then ask it to
+1 -1
View File
@@ -124,7 +124,7 @@ class PluginBridge {
void log_init_message();
boost::asio::io_context io_context;
Sockets sockets;
Sockets<std::jthread> sockets;
/**
* The thread that handles host callbacks.