mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
cd10af4db6
Closer to the corresponding standard function pthread_cond_timedwait.
14 lines
322 B
C
14 lines
322 B
C
#ifndef MP_OSDEP_THREADS_H_
|
|
#define MP_OSDEP_THREADS_H_
|
|
|
|
#include <pthread.h>
|
|
|
|
struct timespec mpthread_get_deadline(double timeout);
|
|
|
|
int mpthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
|
|
double timeout);
|
|
|
|
int mpthread_mutex_init_recursive(pthread_mutex_t *mutex);
|
|
|
|
#endif
|