Set thread-names (libs)

This commit is contained in:
Robin Gareus 2020-03-29 14:56:22 +02:00
parent d6a38d5450
commit c365c6cdb2
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
16 changed files with 33 additions and 3 deletions

View file

@ -64,6 +64,7 @@ AlsaMidiIO::~AlsaMidiIO ()
static void * pthread_process (void *arg)
{
AlsaMidiIO *d = static_cast<AlsaMidiIO *>(arg);
pthread_set_name ("AlsaMidiIO");
d->main_process_thread ();
pthread_exit (0);
return 0;

View file

@ -143,6 +143,7 @@ void*
AlsaAudioSlave::_process_thread (void* arg)
{
AlsaAudioSlave* aas = static_cast<AlsaAudioSlave*> (arg);
pthread_set_name ("AlsaAudioSlave");
return aas->process_thread ();
}

View file

@ -504,6 +504,7 @@ CoreAudioBackend::launch_control_app ()
static void * pthread_freewheel (void *arg)
{
CoreAudioBackend *d = static_cast<CoreAudioBackend *>(arg);
pthread_set_name ("CAFreewheel");
d->freewheel_thread ();
pthread_exit (0);
return 0;