#include <oskit/threads/pthread.h>int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type);
Set the type in a previously initialized mutex attribute object. PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, and PTHREAD_MUTEX_DEFAULT are equivalent. PTHREAD_MUTEX_RECURSIVE allows a mutex to be recursively locked.
- attr
- A pointer to the pthread_mutexattr_t object representing the attributes for a mutex initialization.
- type
- One of PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_DEFAULT, or PTHREAD_MUTEX_RECURSIVE.
Returns zero on success.
pthread_mutex_init