Lines Matching refs:detachstate
167 t->attr.detachstate == PTHREAD_CREATE_DETACHED)); in to_posix_thread()
544 if (t->attr.detachstate == PTHREAD_CREATE_JOINABLE) { in posix_thread_recycle()
1084 if (t->attr.detachstate != PTHREAD_CREATE_JOINABLE) { in pthread_timedjoin_internal()
1100 t->attr.detachstate = PTHREAD_CREATE_DETACHED; in pthread_timedjoin_internal()
1118 t->attr.detachstate = PTHREAD_CREATE_JOINABLE; in pthread_timedjoin_internal()
1197 t->attr.detachstate != PTHREAD_CREATE_JOINABLE) { in pthread_detach()
1204 t->attr.detachstate = PTHREAD_CREATE_DETACHED; in pthread_detach()
1219 int pthread_attr_getdetachstate(const pthread_attr_t *_attr, int *detachstate) in pthread_attr_getdetachstate() argument
1223 if (!__attr_is_initialized(attr) || (detachstate == NULL)) { in pthread_attr_getdetachstate()
1227 *detachstate = attr->detachstate; in pthread_attr_getdetachstate()
1236 int pthread_attr_setdetachstate(pthread_attr_t *_attr, int detachstate) in pthread_attr_setdetachstate() argument
1240 if (!__attr_is_initialized(attr) || ((detachstate != PTHREAD_CREATE_DETACHED) && in pthread_attr_setdetachstate()
1241 (detachstate != PTHREAD_CREATE_JOINABLE))) { in pthread_attr_setdetachstate()
1245 attr->detachstate = detachstate; in pthread_attr_setdetachstate()