blob: b6d950e5dea4851548571960fcd559c4e3fdb788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|