UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

11.3.7.  Attributes: initialize and destroy

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);