mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Replace all threads with Win32Thread in Wine host
This commit is contained in:
@@ -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)),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user