diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-03 13:28:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-07 23:58:59 +0200 |
commit | cdc2769162c7e4d4bbab0b221829c0caca31c43d (patch) | |
tree | 27d11febd0da4fc61d8bcd545e66a862abd390b4 /src/pulsecore/thread.h | |
parent | 5248a584a36d49b745c1891954e9aa5e689e89a2 (diff) |
thread: name all threads so that the names appear in /proc/$PID/task/$TID/comm
Diffstat (limited to 'src/pulsecore/thread.h')
-rw-r--r-- | src/pulsecore/thread.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulsecore/thread.h b/src/pulsecore/thread.h index 60c1267b..aea02764 100644 --- a/src/pulsecore/thread.h +++ b/src/pulsecore/thread.h @@ -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); |