diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-10-22 02:43:15 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-05 17:36:17 +0000 |
commit | 56d35da180879ef86a15f89f1f870dcc1cb11e5f (patch) | |
tree | 4293ad8854541fc08fda8024e789144ae69ccca1 /osdep/threads.c | |
parent | 55ed50ba901e70adda09f1cf8c0de7cf80cabeb3 (diff) | |
download | mpv-56d35da180879ef86a15f89f1f870dcc1cb11e5f.tar.bz2 mpv-56d35da180879ef86a15f89f1f870dcc1cb11e5f.tar.xz |
mp_thread: add win32 implementation
Diffstat (limited to 'osdep/threads.c')
-rw-r--r-- | osdep/threads.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/osdep/threads.c b/osdep/threads.c index 1802fea3ce..b9ead75723 100644 --- a/osdep/threads.c +++ b/osdep/threads.c @@ -17,7 +17,6 @@ #include <stdio.h> #include <errno.h> -#include <pthread.h> #include "common/common.h" #include "config.h" @@ -46,7 +45,7 @@ void mpthread_set_name(const char *name) strncpy(tname, name, sizeof(tname) - 1); pthread_setname_np(pthread_self(), tname); } -#elif HAVE_WIN32_INTERNAL_PTHREADS || HAVE_BSD_THREAD_NAME +#elif HAVE_BSD_THREAD_NAME pthread_set_name_np(pthread_self(), name); #elif HAVE_OSX_THREAD_NAME pthread_setname_np(name); |