pthread_attr_getdetachstate()

get detached state attribute 

Function


SYNOPSIS

#include <pthread.h>

int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate);


DESCRIPTION

The pthread_attr_getdetachstate() function gets the detached state attribute from the thread attribute object.


PARAMETERS

attr 

Is a thread attribute object.

detachstate 

Is the address of the location used to store the current detached state attribute.


RETURN VALUES

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

EFAULT 

attr or detachstate is an invalid pointer.

EINVAL 

attr does not refer to a valid thread attribute object, or detachstate is not writable.


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_attr_init(), pthread_attr_setdetachstate(), pthread_create(), pthread_join()


PTC MKS Toolkit 10.4 Documentation Build 39.