[pulseaudio-discuss] [PATCH 6/8] module-coreaudio-device.c: set the thread name to device name

Daniel Mack zonque at gmail.com
Fri Apr 22 05:27:42 PDT 2011


This makes gdb's "info threads" better understandable
---
 src/modules/macosx/module-coreaudio-device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/macosx/module-coreaudio-device.c b/src/modules/macosx/module-coreaudio-device.c
index 0fad9c5..7a1f177 100644
--- a/src/modules/macosx/module-coreaudio-device.c
+++ b/src/modules/macosx/module-coreaudio-device.c
@@ -759,7 +759,7 @@ int pa__init(pa_module *m) {
     ca_device_create_streams(m, TRUE);
 
     /* create the message thread */
-    if (!(u->thread = pa_thread_new("coreaudio", thread_func, u))) {
+    if (!(u->thread = pa_thread_new(u->device_name, thread_func, u))) {
         pa_log("Failed to create thread.");
         goto fail;
     }
-- 
1.7.1




More information about the pulseaudio-discuss mailing list