mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05: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
|
|
@ -87,7 +87,7 @@ int main(int argc, char* argv[]) {
|
|||
flist = pa_flist_new(0);
|
||||
|
||||
for (i = 0; i < THREADS_MAX; i++) {
|
||||
threads[i] = pa_thread_new(thread_func, pa_sprintf_malloc("Thread #%i", i+1));
|
||||
threads[i] = pa_thread_new("test", thread_func, pa_sprintf_malloc("Thread #%i", i+1));
|
||||
assert(threads[i]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue