[Previous] [Contents] [Next]

pthread_attr_getdetachstate()

Get thread detach state attribute

Synopsis:

#include <pthread.h>

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

Library:

libc

Description:

The pthread_attr_getdetachstate() function gets the thread detach state attribute from the thread attribute object attr and returns it in detachstate.

See the pthread_attr_setdetachstate() function for possible values of detachstate.

Returns:

EOK
Success.

Classification:

POSIX 1003.1 (Threads)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_attr_setdetachstate(), pthread_attr_init(), pthread_create().


[Previous] [Contents] [Next]