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

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


SEE ALSO

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


PTC MKS Toolkit 10.5 Documentation Build 40.