diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 2 | ||||
-rw-r--r-- | input/ipc-unix.c | 6 | ||||
-rw-r--r-- | input/ipc-win.c | 6 |
3 files changed, 9 insertions, 5 deletions
diff --git a/input/input.c b/input/input.c index 9d50abb50d..4b13841224 100644 --- a/input/input.c +++ b/input/input.c @@ -1622,7 +1622,7 @@ 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"); + mpthread_set_name("input"); src->in->thread_running = true; diff --git a/input/ipc-unix.c b/input/ipc-unix.c index 5a638ea49f..2cb53be546 100644 --- a/input/ipc-unix.c +++ b/input/ipc-unix.c @@ -105,7 +105,9 @@ static void *client_thread(void *p) struct client_arg *arg = p; bstr client_msg = { talloc_strdup(NULL, ""), 0 }; - mpthread_set_name(arg->client_name); + char *tname = talloc_asprintf(NULL, "ipc/%s", arg->client_name); + mpthread_set_name(tname); + talloc_free(tname); int pipe_fd = mpv_get_wakeup_pipe(arg->client); if (pipe_fd < 0) { @@ -302,7 +304,7 @@ static void *ipc_thread(void *p) struct mp_ipc_ctx *arg = p; - mpthread_set_name("ipc socket listener"); + mpthread_set_name("ipc/socket"); MP_VERBOSE(arg, "Starting IPC master\n"); diff --git a/input/ipc-win.c b/input/ipc-win.c index aec754a281..42a519ecf0 100644 --- a/input/ipc-win.c +++ b/input/ipc-win.c @@ -210,7 +210,9 @@ static void *client_thread(void *p) DWORD ioerr = 0; DWORD r; - mpthread_set_name(arg->client_name); + char *tname = talloc_asprintf(NULL, "ipc/%s", arg->client_name); + mpthread_set_name(tname); + talloc_free(tname); arg->write_ol.hEvent = CreateEventW(NULL, TRUE, TRUE, NULL); if (!wakeup_event || !ol.hEvent || !arg->write_ol.hEvent) { @@ -356,7 +358,7 @@ static void *ipc_thread(void *p) HANDLE client = INVALID_HANDLE_VALUE; int client_num = 0; - mpthread_set_name("ipc named pipe listener"); + mpthread_set_name("ipc/named-pipe"); MP_VERBOSE(arg, "Starting IPC master\n"); SECURITY_ATTRIBUTES sa = { |