diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:36:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:36:56 +0000 |
commit | 51de1d8436100f725f3576aefa24a2bd2057bc28 (patch) | |
tree | c6d1d5264b6d40a8d7ca34129f36b7d61e188af3 /osdep/threads.h | |
parent | Initial commit. (diff) | |
download | mpv-upstream/0.37.0.tar.xz mpv-upstream/0.37.0.zip |
Adding upstream version 0.37.0.upstream/0.37.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'osdep/threads.h')
-rw-r--r-- | osdep/threads.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/osdep/threads.h b/osdep/threads.h new file mode 100644 index 0000000..b6d950e --- /dev/null +++ b/osdep/threads.h @@ -0,0 +1,23 @@ +#ifndef MP_OSDEP_THREADS_H_ +#define MP_OSDEP_THREADS_H_ + +#include "config.h" + +enum mp_mutex_type { + MP_MUTEX_NORMAL = 0, + MP_MUTEX_RECURSIVE, +}; + +#define mp_mutex_init(mutex) \ + mp_mutex_init_type(mutex, MP_MUTEX_NORMAL) + +#define mp_mutex_init_type(mutex, mtype) \ + mp_mutex_init_type_internal(mutex, mtype) + +#if HAVE_WIN32_THREADS +#include "threads-win32.h" +#else +#include "threads-posix.h" +#endif + +#endif |