thread: name all threads so that the names appear in /proc/$PID/task/$TID/comm

This commit is contained in:
Lennart Poettering 2010-05-03 13:28:15 +02:00
parent 5248a584a3
commit cdc2769162
23 changed files with 80 additions and 28 deletions

View file

@ -35,7 +35,7 @@ typedef struct pa_thread pa_thread;
typedef void (*pa_thread_func_t) (void *userdata);
pa_thread* pa_thread_new(pa_thread_func_t thread_func, void *userdata);
pa_thread* pa_thread_new(const char *name, pa_thread_func_t thread_func, void *userdata);
void pa_thread_free(pa_thread *t);
int pa_thread_join(pa_thread *t);
int pa_thread_is_running(pa_thread *t);
@ -45,6 +45,9 @@ void pa_thread_yield(void);
void* pa_thread_get_data(pa_thread *t);
void pa_thread_set_data(pa_thread *t, void *userdata);
const char *pa_thread_get_name(pa_thread *t);
void pa_thread_set_name(pa_thread *t, const char *name);
typedef struct pa_tls pa_tls;
pa_tls* pa_tls_new(pa_free_cb_t free_cb);