mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-16 08:23:55 +02:00
Add thread names
This commit is contained in:
@@ -111,6 +111,7 @@ class PluginBridge {
|
||||
has_realtime_priority_promise.set_value(
|
||||
set_realtime_priority(true));
|
||||
set_realtime_priority(false);
|
||||
pthread_setname_np(pthread_self(), "wine-stdio");
|
||||
|
||||
io_context.run();
|
||||
}) {}
|
||||
@@ -302,6 +303,8 @@ class PluginBridge {
|
||||
host_watchdog_handler = std::jthread([&](std::stop_token st) {
|
||||
using namespace std::literals::chrono_literals;
|
||||
|
||||
pthread_setname_np(pthread_self(), "watchdog");
|
||||
|
||||
while (!st.stop_requested()) {
|
||||
if (!plugin_host->running()) {
|
||||
generic_logger.log(
|
||||
|
||||
Reference in New Issue
Block a user