diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-10-22 20:59:34 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-27 23:18:56 +0000 |
commit | cb829879af8f2c93fd77c47f12c162d4ce580e30 (patch) | |
tree | 8307eb9ab1fa788f6a85bf1b69ceebb3c91bdb35 /input/ipc-unix.c | |
parent | 65806ac4d13913d23fa64f87e01ff760f2e2b329 (diff) | |
download | mpv-cb829879af8f2c93fd77c47f12c162d4ce580e30.tar.bz2 mpv-cb829879af8f2c93fd77c47f12c162d4ce580e30.tar.xz |
mp_threads: rename threads for consistent naming across all of them
I'd like some names to be more descriptive, but to work with 15 chars
limit we have to make some sacrifice.
Also because of the limit, remove the `mpv/` prefix and prioritize
actuall thread name.
Diffstat (limited to 'input/ipc-unix.c')
-rw-r--r-- | input/ipc-unix.c | 6 |
1 files changed, 4 insertions, 2 deletions
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"); |