diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 2 | ||||
-rw-r--r-- | input/ipc.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index c9a5bbe99c..cfb41342cd 100644 --- a/input/input.c +++ b/input/input.c @@ -1451,6 +1451,8 @@ static void *input_src_thread(void *ptr) void (*loop_fn)(struct mp_input_src *src, void *ctx) = args[1]; void *ctx = args[2]; + mpthread_set_name("input source"); + src->in->thread_running = true; loop_fn(src, ctx); diff --git a/input/ipc.c b/input/ipc.c index a64be27de3..0fc6208faa 100644 --- a/input/ipc.c +++ b/input/ipc.c @@ -29,6 +29,7 @@ #include "config.h" #include "osdep/io.h" +#include "osdep/threads.h" #include "common/common.h" #include "common/global.h" @@ -471,6 +472,8 @@ static void *client_thread(void *p) struct client_arg *arg = p; bstr client_msg = { talloc_strdup(NULL, ""), 0 }; + mpthread_set_name(arg->client_name); + int pipe_fd = mpv_get_wakeup_pipe(arg->client); if (pipe_fd < 0) { MP_ERR(arg, "Could not get wakeup pipe\n"); @@ -649,6 +652,8 @@ static void *ipc_thread(void *p) struct mp_ipc_ctx *arg = p; + mpthread_set_name("ipc socket listener"); + MP_INFO(arg, "Starting IPC master\n"); ipc_fd = socket(AF_UNIX, SOCK_STREAM, 0); |