diff options
Diffstat (limited to 'misc/thread_pool.c')
-rw-r--r-- | misc/thread_pool.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <pthread.h> #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}; |