From ec131fcb703fc906d14371afaaaaa56e5bc5dfed Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 14 Jun 2021 01:29:16 +0200 Subject: [PATCH] Set Thread name to aid debugging --- libs/ardour/export_handler.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index f2e9e21ef0..ce0bbfff24 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -355,6 +355,9 @@ ExportHandler::command_output(std::string output, size_t size) void* ExportHandler::start_timespan_bg (void* eh) { + char name[64]; + snprintf (name, 64, "Export-TS-%p", (void*)DEBUG_THREAD_SELF); + pthread_set_name (name); ExportHandler* self = static_cast (eh); self->process_connection.disconnect (); Glib::Threads::Mutex::Lock l (self->export_status->lock());