mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 03:32:50 +00:00
thread_pool: set thread name
This commit is contained in:
parent
0354e7c599
commit
4fd3ad8d63
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user