mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 21:50:11 +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(
|
||||
|
||||
@@ -73,6 +73,7 @@ Vst2PluginBridge::Vst2PluginBridge(audioMasterCallback host_callback)
|
||||
// lockstep anyway
|
||||
host_callback_handler = std::jthread([&]() {
|
||||
set_realtime_priority(true);
|
||||
pthread_setname_np(pthread_self(), "host-callbacks");
|
||||
|
||||
sockets.vst_host_callback.receive_events(
|
||||
std::pair<Vst2Logger&, bool>(logger, false),
|
||||
|
||||
@@ -49,6 +49,7 @@ Vst3PluginBridge::Vst3PluginBridge()
|
||||
// configuration.
|
||||
host_callback_handler = std::jthread([&]() {
|
||||
set_realtime_priority(true);
|
||||
pthread_setname_np(pthread_self(), "host-callbacks");
|
||||
|
||||
sockets.vst_host_callback.receive_messages(
|
||||
std::pair<Vst3Logger&, bool>(logger, false),
|
||||
|
||||
Reference in New Issue
Block a user