mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-20 05:34:16 -04:00
thread: name all threads so that the names appear in /proc/$PID/task/$TID/comm
This commit is contained in:
parent
5248a584a3
commit
cdc2769162
23 changed files with 80 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue