13
0

Set names of RT tasks threads

This commit is contained in:
Robin Gareus 2022-05-05 00:53:20 +02:00
parent 6c2c3a49c4
commit 668cb1ca3b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -64,7 +64,11 @@ RTTaskList::drop_threads ()
RTTaskList::_thread_run (void *arg)
{
RTTaskList *d = static_cast<RTTaskList *>(arg);
pthread_set_name ("RTTaskList");
char name[64];
snprintf (name, 64, "RTTask-%p", (void*)DEBUG_THREAD_SELF);
pthread_set_name (name);
d->run ();
pthread_exit (0);
return 0;