pthread_mutexattr_getkind_np(3)
NAME
pthread_mutexattr_getkind_np - Obtains the mutex type attribute used when a mutex is created
SYNOPSIS
#include <pthread.h> int pthread_mutexattr_getkind_np( pthread_mutexattr_t attr);
PARAMETERS
attrMutex attributes object whose mutex type is obtained.
DESCRIPTION
The pthread_mutexattr_getkind_np() routine obtains the mutex type attribute that is used when a mutex is created. See the pthread_mutexattr_setkind_np() reference page for information about mutex type attributes. This routine is a new primitive.
RETURN VALUES
If the function fails, errno may be set to one of the following values:
| Return | Error | Description |
| Mutex type attribute | Successful completion. | |
| −1 | [EINVAL] | The value specified by attr is invalid. |
RELATED INFORMATION
Functions: pthread_mutexattr_create(3), pthread_mutexattr_setkind_np(3), pthread_mutex_init(3).
Hewlett-Packard Company — OSF DCE 1.1/HP DCE 1.5