Obtains the mutex type attribute used when a mutex is created.
pthread_mutexattr_gettype_np(
attr,
type );
Argument Data Type Access
attr opaque pthread_ read
mutexattr_t
type integer write
#includeint pthread_mutexattr_gettype_np ( const pthread_mutexattr_t *attr, int *type);
If an error condition occurs, this routine returns an integer value indicating the type of the error. Possible return values are as follows:
Return Description0 Successful completion. [EINVAL] The value specified by attr is invalid.
pthread_mutexattr_init pthread_mutexattr_settype_np pthread_mutex_init