int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate);
Creates a new detached thread. A detached thread disappears without leaving a trace. The thread ID and any of its resources are freed and ready for reuse.
pthread_join()cannot wait for a detached thread.
Creates a new non-detached thread. The thread ID and some of the threads other resources are not freed until
pthread_join()is called. pthread_join()must be called to release any resources associated with the terminated thread.
Is a thread attribute object.
Is the thread detached state attribute value; one of the values specified in the DESCRIPTION section.
attr is not an initialized thread attribute object, or detachstate is not a valid detached state setting.
attr is not a valid pointer.
POSIX P1003.1 (1996)
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
PTC MKS Toolkit 10.3 Documentation Build 39.