diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-03 13:28:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-03 13:28:39 +0200 |
commit | bc7314f14e934750194da5582e7317e8de74e504 (patch) | |
tree | 7ab187ecacf8a4deb6b390a649d93e311316bb5b /src/pulsecore/thread.h | |
parent | 22f708a1ece613e011ec8740530b1ed40459891d (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); |