Multithreaded Programming Guide

Get the Mutex Type Attribute

pthread_mutexattr_gettype(3T)

#include <pthread.h>

int pthread_mutexattr_gettype(pthread_mutexattr_t  *attr , int  *type);

pthread_mutexattr_gettype(3T) gets the mutex type attribute set by pthread_mutexattr_settype(). The default value of the type attribute is PTHREAD_MUTEX_DEFAULT.

The type argument specifies the type of mutex. Valid mutex types include:

For a description of each type, see "pthread_mutexattr_settype(3T)"