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

@ -80,7 +80,7 @@ int main(int argc, char *argv[]) {
pa_assert_se(q = pa_asyncmsgq_new(0));
pa_assert_se(t = pa_thread_new(the_thread, q));
pa_assert_se(t = pa_thread_new("test", the_thread, q));
printf("Operation A post\n");
pa_asyncmsgq_post(q, NULL, OPERATION_A, NULL, 0, NULL, NULL);