Return Values
pthread_mutexattr_init() returns zero after completing
successfully. Any other return value indicates that an error occurred. If
either of the following conditions occurs, the function fails and returns
the corresponding value.
-
ENOMEM
-
There is not enough memory to initialize
the mutex attributes object.