summaryrefslogtreecommitdiffstats
path: root/osdep/threads.h
blob: 3d060009cb67585b4f2735deb03b69cca4d6e6e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef MP_OSDEP_THREADS_H_
#define MP_OSDEP_THREADS_H_

#include <pthread.h>

struct timespec mpthread_get_deadline(double timeout);

int mpthread_cond_timed_wait(pthread_cond_t *cond, pthread_mutex_t *mutex,
                             double timeout);

int mpthread_mutex_init_recursive(pthread_mutex_t *mutex);

#endif