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
+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