From 9d737964d6a1c0b01ed7386f6c259c2b2c674704 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 29 Mar 2020 14:56:50 +0200 Subject: [PATCH] Set thread-names (GUI) --- gtk2_ardour/linux_vst_gui_support.cc | 3 +++ gtk2_ardour/pingback.cc | 1 + gtk2_ardour/strip_silence_dialog.cc | 5 ++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc index 80ef0ec305..4d4de55e24 100644 --- a/gtk2_ardour/linux_vst_gui_support.cc +++ b/gtk2_ardour/linux_vst_gui_support.cc @@ -31,6 +31,8 @@ #include #include +#include "pbd/pthread_utils.h" + #include "ardour/linux_vst_support.h" #include "ardour/vst_plugin.h" @@ -319,6 +321,7 @@ windows, that is if they don't manage their own UIs **/ static void* gui_event_loop (void* ptr) { + pthread_set_name ("LXVSTEventLoop"); VSTState* vstfx; int LXVST_sched_timer_interval = 40; //ms, 25fps XEvent event; diff --git a/gtk2_ardour/pingback.cc b/gtk2_ardour/pingback.cc index dc876c5036..ae7c010c02 100644 --- a/gtk2_ardour/pingback.cc +++ b/gtk2_ardour/pingback.cc @@ -83,6 +83,7 @@ _query_registry (const char *regkey, const char *regval, std::string &rv) { static void* _pingback (void *arg) { + pthread_set_name ("Pingback"); ArdourCurl::HttpGet h; ping_call* cm = static_cast (arg); diff --git a/gtk2_ardour/strip_silence_dialog.cc b/gtk2_ardour/strip_silence_dialog.cc index 242a485221..f6be03ca11 100644 --- a/gtk2_ardour/strip_silence_dialog.cc +++ b/gtk2_ardour/strip_silence_dialog.cc @@ -26,6 +26,8 @@ #include #include +#include "pbd/pthread_utils.h" + #include "ardour/audioregion.h" #include "ardour/dB.h" #include "ardour/logmeter.h" @@ -246,6 +248,7 @@ void * StripSilenceDialog::_detection_thread_work (void* arg) { StripSilenceDialog* d = reinterpret_cast (arg); + pthread_set_name ("SilenceDetect"); return d->detection_thread_work (); } @@ -374,4 +377,4 @@ StripSilenceDialog::finished(int response) if(response == Gtk::RESPONSE_OK) { _session->add_extra_xml(get_state()); } -} \ No newline at end of file +}