13
0

use PROGRAM_NAME to name GUI thread

This commit is contained in:
Paul Davis 2020-04-30 11:03:49 -06:00
parent 70da4ad893
commit b95cd280f1

View File

@ -81,7 +81,10 @@ UI::UI (string application_name, string thread_name, int *argc, char ***argv)
{
theMain = new Main (argc, argv);
pthread_set_name ("ArdourGUI");
char buf[18];
/* pthread public name has a 16 char limit */
snprintf (buf, sizeof (buf), "%.11sGUI", PROGRAM_NAME);
pthread_set_name (buf);
_active = false;