*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: pthread_attr_getdetachstate | Section: 3 | Source: NetBSD | File: pthread_attr_getdetachstate.3
PTHREAD_ATTR_GETDETACHSTATE(3) FreeBSD Library Functions Manual NAME pthread_attr_getdetachstate, pthread_attr_setdetachstate - get and set the "detach state" attribute LIBRARY POSIX Threads Library (libpthread, -lpthread) SYNOPSIS #include <pthread.h> int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate); int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate); DESCRIPTION The attribute parameters for the pthread_attr_getdetachstate() and pthread_attr_setdetachstate() functions are mutually exclusive and must be one of: PTHREAD_CREATE_JOINABLE The threads must explicitly be waited for using the pthread_join(3) function once they exit for their status to be received and their resources to be freed. This is the default. PTHREAD_CREATE_DETACHED The thread's resources will automatically be freed once the thread exits, and the thread will not be joined. If the thread is created as detached, it is an error to use the thread ID with pthread_detach(3) or pthread_join(3). RETURN VALUES If successful, these functions return 0. Otherwise, an error number is returned to indicate the error. ERRORS No errors are defined for pthread_attr_getdetachstate(). The pthread_attr_setdetachstate() function should fail if: [EINVAL] The value specified by detachstate is invalid. SEE ALSO pthread_attr(3), pthread_detach(3), pthread_join(3) STANDARDS Both functions conform to IEEE Std 1003.1-2001 ("POSIX.1"). FreeBSD 14.1-RELEASE-p8 July 9, 2010 FreeBSD 14.1-RELEASE-p8

Navigation Options