Initializes a mutex attributes object that is used to specify the attributes of mutexes when they are created.
pthread_mutexattr_init( attr );
Argument Data Type Accessattr opaque pthread_ write mutexattr_t
#includeint pthread_mutexattr_init ( pthread_mutexattr_t *attr);
When a mutex attributes object is used to initialize a mutex, the values of the individual attributes determine the characteristics of the new object. Attributes objects act like additional arguments to object creation. Changing individual attributes or destroying the attributes object does not affect any objects that were previously created using the attributes object.
Return Description0 Successful completion. [ENOMEM] Insufficient memory while attempting to create the mutex attributes object.
pthread_create pthread_mutexattr_gettype_np pthread_mutexattr_settype_np pthread_mutex_init