mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-20 20:36:01 +01:00
use PROGRAM_NAME to name GUI thread
This commit is contained in:
parent
70da4ad893
commit
b95cd280f1
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue