pthread_mutexattr_gettype()

get mutex type attribute of mutex attribute object 

Function


SYNOPSIS

#include <pthread.h>

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


DESCRIPTION

The pthread_mutexattr_gettype() function gets the mutex type attribute from the specified mutex attribute object.


PARAMETERS

attr 

Is the mutex attribute object.

type 

Is the address of location used to store the current mutex type attribute.


RETURN VALUES

On success, pthread_mutexattr_gettype() returns 0. On error, one of the following values is returned:

EINVAL 

attr does not refer to an initialized mutex attribute object, or type is not writable.

EFAULT 

attr or type is an invalid pointer.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_mutex_init(), pthread_mutexattr_init(), pthread_mutexattr_settype()


MKS Toolkit 9.3 Documentation Build 6.