summaryrefslogtreecommitdiffstats
path: root/osdep/threads.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:36:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:36:56 +0000
commit51de1d8436100f725f3576aefa24a2bd2057bc28 (patch)
treec6d1d5264b6d40a8d7ca34129f36b7d61e188af3 /osdep/threads.h
parentInitial commit. (diff)
downloadmpv-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.h23
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