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 /player/main.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 'player/main.c')
-rw-r--r-- | player/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c index cd84026730..8f98754f2b 100644 --- a/player/main.c +++ b/player/main.c @@ -34,6 +34,7 @@ #include "misc/thread_pool.h" #include "osdep/io.h" #include "osdep/terminal.h" +#include "osdep/threads.h" #include "osdep/timer.h" #include "osdep/main-fn.h" @@ -419,6 +420,7 @@ int mp_initialize(struct MPContext *mpctx, char **options) int mpv_main(int argc, char *argv[]) { + mpthread_set_name("main"); struct MPContext *mpctx = mp_create(); if (!mpctx) return 1; |