mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Fix style
This commit is contained in:
@@ -589,7 +589,7 @@ class EventHandler {
|
|||||||
F callback) {
|
F callback) {
|
||||||
// Reading, processing, and writing back event data from the sockets
|
// Reading, processing, and writing back event data from the sockets
|
||||||
// works in the same way regardless of which socket we're using
|
// works in the same way regardless of which socket we're using
|
||||||
auto process_event =
|
const auto process_event =
|
||||||
[&](boost::asio::local::stream_protocol::socket& socket,
|
[&](boost::asio::local::stream_protocol::socket& socket,
|
||||||
bool on_main_thread) {
|
bool on_main_thread) {
|
||||||
auto event = read_object<Event>(socket);
|
auto event = read_object<Event>(socket);
|
||||||
|
|||||||
@@ -175,8 +175,8 @@ GroupHost::GroupHost(boost::asio::io_context& io_context,
|
|||||||
const fs::path endpoint_base_dir = sockets.base_dir;
|
const fs::path endpoint_base_dir = sockets.base_dir;
|
||||||
const fs::path group_socket_path =
|
const fs::path group_socket_path =
|
||||||
generate_group_endpoint(group_name, wine_prefix, plugin_arch);
|
generate_group_endpoint(group_name, wine_prefix, plugin_arch);
|
||||||
auto connect = [&io_context, plugin_path, endpoint_base_dir,
|
const auto connect = [&io_context, plugin_path, endpoint_base_dir,
|
||||||
group_socket_path]() {
|
group_socket_path]() {
|
||||||
boost::asio::local::stream_protocol::socket group_socket(io_context);
|
boost::asio::local::stream_protocol::socket group_socket(io_context);
|
||||||
group_socket.connect(group_socket_path.string());
|
group_socket.connect(group_socket_path.string());
|
||||||
|
|
||||||
@@ -201,7 +201,7 @@ GroupHost::GroupHost(boost::asio::io_context& io_context,
|
|||||||
bp::std_out = stdout_pipe, bp::std_err = stderr_pipe);
|
bp::std_out = stdout_pipe, bp::std_err = stderr_pipe);
|
||||||
group_host.detach();
|
group_host.detach();
|
||||||
|
|
||||||
pid_t group_host_pid = group_host.id();
|
const pid_t group_host_pid = group_host.id();
|
||||||
group_host_connect_handler =
|
group_host_connect_handler =
|
||||||
std::jthread([this, connect, group_socket_path, plugin_path,
|
std::jthread([this, connect, group_socket_path, plugin_path,
|
||||||
endpoint_base_dir, group_host_pid]() {
|
endpoint_base_dir, group_host_pid]() {
|
||||||
|
|||||||
Reference in New Issue
Block a user