diff options
author | wm4 <wm4@nowhere> | 2018-05-10 20:18:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:34 +0200 |
commit | 4fd3ad8d63aabeb1dc2448d650bb942d24163f54 (patch) | |
tree | ff92ec6c83d5b8ad9ffcab6215237e647c28064f /misc/thread_pool.c | |
parent | 0354e7c5990c32bef97c16d90f5962860f31f820 (diff) | |
download | mpv-4fd3ad8d63aabeb1dc2448d650bb942d24163f54.tar.bz2 mpv-4fd3ad8d63aabeb1dc2448d650bb942d24163f54.tar.xz |
thread_pool: set thread name
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}; |