From 4fd3ad8d63aabeb1dc2448d650bb942d24163f54 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 May 2018 20:18:09 +0200 Subject: thread_pool: set thread name --- misc/thread_pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/thread_pool.c b/misc/thread_pool.c index 25693a7f25..766d72d87b 100644 --- a/misc/thread_pool.c +++ b/misc/thread_pool.c @@ -16,6 +16,7 @@ #include #include "common/common.h" +#include "osdep/threads.h" #include "osdep/timer.h" #include "thread_pool.h" @@ -53,6 +54,8 @@ static void *worker_thread(void *arg) { struct mp_thread_pool *pool = arg; + mpthread_set_name("worker"); + pthread_mutex_lock(&pool->lock); struct timespec ts = {0}; -- cgit v1.2.3