Creates a mutex attributes object that is used to specify the attributes of mutexes when they are created.
pthread_mutexattr_create( attr );
Argument Data Type Accessattr opaque pthread_ write mutexattr_t
int pthread_mutexattr_create ( pthread_mutexattr_t *attr);
When a mutex attributes object is used to create 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 does not affect any objects that were previously created using the attributes object.
If an error condition occurs, this routine returns -1 and sets errno to the corresponding error value. Possible return values are as follows:
Return Error Description0 Successful completion. -1 [ENOMEM] Insufficient memory exists to create the mutex attributes object.