From 9ba66418790f184339ad3a891f525d54459d6369 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 19 Oct 2014 23:32:34 +0200 Subject: Set thread name for debugging Especially with other components (libavcodec, OSX stuff), the thread list can get quite populated. Setting the thread name helps when debugging. Since this is not portable, we check the OS variants in waf configure. old-configure just gets a special-case for glibc, since doing a full check here would probably be a waste of effort. --- audio/out/push.c | 1 + 1 file changed, 1 insertion(+) (limited to 'audio/out/push.c') diff --git a/audio/out/push.c b/audio/out/push.c index 20337ef9d2..187d5ef03a 100644 --- a/audio/out/push.c +++ b/audio/out/push.c @@ -303,6 +303,7 @@ static void *playthread(void *arg) { struct ao *ao = arg; struct ao_push_state *p = ao->api_priv; + mpthread_set_name("ao"); pthread_mutex_lock(&p->lock); while (!p->terminate) { if (!p->paused) -- cgit v1.2.3