pthread_mutexattr_getpshared()

get process-shared state attribute of mutex attribute object 

Function


SYNOPSIS

#include <pthread.h>

int pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared);


DESCRIPTION

The pthread_mutexattr_getpshared() function gets the process-shared state attribute from the specified mutex attribute object.


PARAMETERS

attr 

Is the mutex attribute object.

pshared 

Is the address of the location used to store the current process-shared state attribute.


RETURN VALUES

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

EINVAL 

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

EFAULT 

attr or pshared is an invalid pointer.


CONFORMANCE

POSIX P1003.1 (1996)


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_setpshared()


PTC MKS Toolkit 10.4 Documentation Build 39.