Content-type: text/html Man page of pthread_attr_getdetachstate

pthread_attr_getdetachstate

Section: C Library Functions (3)
Index Return to Main Contents
 

NAME

pthread_attr_getdetachstate - Obtains the detachstate attribute of the specified thread attributes object.  

LIBRARY

DECthreads POSIX 1003.1c Library (libpthread.so)  

SYNOPSIS

#include <pthread.h>

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

STANDARDS

Interfaces documented on this reference page conform to industry standards as follows:

IEEE Std 1003.1c-1995, POSIX System Application Program Interface  

PARAMETERS

Thread attributes object whose detachstate attribute is obtained. Receives the value of the detachstate attribute.  

DESCRIPTION

This routine obtains the detachstate attribute of a thread attributes object. This attribute specifies whether threads created using the specified thread attributes object are created in a detached state.

See the pthread_attr_setdetachstate description for information about the detachstate attribute.

 

RETURN VALUES

On successful completion, this routine returns a zero, and the detachstate attribute is set in detachstate. A value of PTHREAD_CREATE_JOINABLE indicates the thread is not detached, and a value of PTHREAD_CREATE_DETACHED indicates the thread is detached.

If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. The detached state attribute is returned in detachstate. The value specified by attr does not refer to an existing thread attributes object.  

ERRORS

None  

RELATED INFORMATION

Functions: pthread_attr_init(3), pthread_attr_setdetachstate(3)

Manuals: Guide to DECthreads and Programmer's Guide

delim off


 

Index

NAME
LIBRARY
SYNOPSIS
STANDARDS
PARAMETERS
DESCRIPTION
RETURN VALUES
ERRORS
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:41:48 GMT, October 02, 2010