2013-11-17 15:42:57 +00:00
|
|
|
#ifndef MP_OSDEP_THREADS_H_
|
|
|
|
#define MP_OSDEP_THREADS_H_
|
|
|
|
|
|
|
|
#include <pthread.h>
|
2014-05-18 14:36:08 +00:00
|
|
|
#include <inttypes.h>
|
2013-11-17 15:42:57 +00:00
|
|
|
|
2014-05-18 14:36:08 +00:00
|
|
|
// Helper to reduce boiler plate.
|
2014-01-31 18:50:25 +00:00
|
|
|
int mpthread_mutex_init_recursive(pthread_mutex_t *mutex);
|
|
|
|
|
2014-10-19 21:32:34 +00:00
|
|
|
// Set thread name (for debuggers).
|
|
|
|
void mpthread_set_name(const char *name);
|
|
|
|
|
2013-11-17 15:42:57 +00:00
|
|
|
#endif
|