summaryrefslogtreecommitdiffstats
path: root/osdep/threads.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-17 16:42:57 +0100
committerwm4 <wm4@nowhere>2013-11-17 16:42:57 +0100
commitb78d11d3282b118287901bd4f9a220880e27084b (patch)
treefe926bc37a9fcf7dbb9adb59378d25b5977740a8 /osdep/threads.h
parent2556f45f2eb6d92b6b275dd40550bc936b14b88b (diff)
downloadmpv-b78d11d3282b118287901bd4f9a220880e27084b.tar.bz2
mpv-b78d11d3282b118287901bd4f9a220880e27084b.tar.xz
stream: split out pthread helper function
Also split the function itself into 3.
Diffstat (limited to 'osdep/threads.h')
-rw-r--r--osdep/threads.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/osdep/threads.h b/osdep/threads.h
new file mode 100644
index 0000000000..7c9f041320
--- /dev/null
+++ b/osdep/threads.h
@@ -0,0 +1,9 @@
+#ifndef MP_OSDEP_THREADS_H_
+#define MP_OSDEP_THREADS_H_
+
+#include <pthread.h>
+
+int mpthread_cond_timed_wait(pthread_cond_t *cond, pthread_mutex_t *mutex,
+ double timeout);
+
+#endif