pthread_attr_setdetachstate(3) Library Functions Manual pthread_attr_setdetachstate, pthread_attr_getdetachstate - / POSIX (libpthread -lpthread) #include int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate); int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate); pthread_attr_setdetachstate() attr detachstate. attr . detachstate: PTHREAD_CREATE_DETACHED attr . PTHREAD_CREATE_JOINABLE attr . PTHREAD_CREATE_JOINABLE. pthread_attr_getdetachstate() attr detachstate. 0 . pthread_attr_setdetachstate() : EINVAL detachstate. attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |pthread_attr_setdetachstate(),| | MT-Safe | |pthread_attr_getdetachstate()| | | +------------+------------------------------------+--------------------+ POSIX.1-2008. POSIX.1-2001. pthread_create(3) . pthread_join(3) pthread_detach(3); pthread_create(3). pthread_detach(3) pthread_join(3). pthread_attr_init(3). pthread_attr_init(3), pthread_create(3), pthread_detach(3), pthread_join(3), pthreads(7) 3 . . : . 6.18 17 2025 pthread_attr_setdetachstate(3)