#include <oskit/threads/pthread.h>int pthread_mutex_init(pthread_mutex_t *m, pthread_mutexattr_t *attr);
Initialize a mutex object, using the provided mutex attributes object. The attributes object may be a NULL pointer, in which case pthread_mutexattr_default is used.
- mutex
- A pointer to the mutex object.
- attr
- A pointer to the mutex attributes object.
Returns zero on success.
pthread_mutex_destroy, pthread_mutex_lock, pthread_mutex_unlock