mpv/osdep/threads.h

24 lines
419 B
C
Raw Normal View History

#ifndef MP_OSDEP_THREADS_H_
#define MP_OSDEP_THREADS_H_
2023-10-22 00:43:15 +00:00
#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)
2023-10-22 00:43:15 +00:00
#if HAVE_WIN32_THREADS
#include "threads-win32.h"
#else
#include "threads-posix.h"
2023-10-22 00:43:15 +00:00
#endif
#endif