diff options
author | wm4 <wm4@nowhere> | 2013-11-17 16:42:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-17 16:42:57 +0100 |
commit | b78d11d3282b118287901bd4f9a220880e27084b (patch) | |
tree | fe926bc37a9fcf7dbb9adb59378d25b5977740a8 /osdep/threads.h | |
parent | 2556f45f2eb6d92b6b275dd40550bc936b14b88b (diff) | |
download | mpv-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.h | 9 |
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 |