mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
92b9d75d72
There is not much of a reason to have these wrappers around. Use POSIX standard functions directly, and use a separate utility function to take care of the timespec calculations. (Course POSIX for using this weird format for time values.)
14 lines
281 B
C
14 lines
281 B
C
#ifndef MP_OSDEP_THREADS_H_
|
|
#define MP_OSDEP_THREADS_H_
|
|
|
|
#include <pthread.h>
|
|
#include <inttypes.h>
|
|
|
|
// Helper to reduce boiler plate.
|
|
int mpthread_mutex_init_recursive(pthread_mutex_t *mutex);
|
|
|
|
// Set thread name (for debuggers).
|
|
void mpthread_set_name(const char *name);
|
|
|
|
#endif
|