As with threads, the model provides the ability to change the behavior of a lock by a particular type of configuration attribute:
(pthread_mutexattr_t
). This object is used to work in the creation, destruction, and configuration of a mutex:
#include <pthread.h>
int pthread_mutexattr_init(pthread_mutexattr_t *attr);
#include <pthread.h>
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);