Searched refs:detachstate (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/tests/posix/common/src/ |
D | pthread_attr.c | 414 int detachstate; in ZTEST() local 421 zassert_equal(pthread_attr_getdetachstate(NULL, &detachstate), EINVAL); in ZTEST() 422 zassert_equal(pthread_attr_getdetachstate(&uninit_attr, &detachstate), in ZTEST() 429 zassert_ok(pthread_attr_getdetachstate(&attr, &detachstate)); in ZTEST() 430 zassert_equal(detachstate, PTHREAD_CREATE_JOINABLE); in ZTEST() 436 int detachstate = PTHREAD_CREATE_JOINABLE; in ZTEST() local 444 zassert_equal(pthread_attr_setdetachstate(NULL, detachstate), EINVAL); in ZTEST() 446 detachstate), in ZTEST() 454 zassert_ok(pthread_attr_getdetachstate(&attr, &detachstate)); in ZTEST() 455 zassert_equal(detachstate, PTHREAD_CREATE_DETACHED); in ZTEST()
|
/Zephyr-latest/lib/posix/options/ |
D | pthread.c | 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() [all …]
|
D | posix_internal.h | 41 bool detachstate: 1; member
|
D | timer.c | 115 int detachstate; in timer_create() local 144 &detachstate); in timer_create() 152 if (detachstate != PTHREAD_CREATE_DETACHED) { in timer_create()
|
/Zephyr-latest/include/zephyr/posix/ |
D | pthread.h | 412 int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate); 413 int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate);
|