aboutsummaryrefslogtreecommitdiffhomepage
path: root/osdep/threads.h
blob: 8633618009c1526905f3579fcf4e133467ccb92f (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>
#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