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. --- stream/cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stream') diff --git a/stream/cache.c b/stream/cache.c index a5ac1c2995..bc4d9e2610 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -457,6 +457,7 @@ static void cache_execute_control(struct priv *s) static void *cache_thread(void *arg) { struct priv *s = arg; + mpthread_set_name("cache"); pthread_mutex_lock(&s->mutex); update_cached_controls(s); double last = mp_time_sec(); -- cgit v1.2.3