/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/ |
D | 1-1.c | 30 int detach_state; in main() local 41 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main() 46 if (detach_state == PTHREAD_CREATE_JOINABLE) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getdetachstate/ |
D | 1-1.c | 26 int detach_state; in main() local 36 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main() 41 if (detach_state == PTHREAD_CREATE_JOINABLE) { in main()
|
D | 1-2.c | 30 int detach_state; in main() local 47 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main() 52 if (detach_state == PTHREAD_CREATE_DETACHED) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setdetachstate/ |
D | 1-1.c | 37 int detach_state; in main() local 53 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main() 58 if (detach_state == PTHREAD_CREATE_JOINABLE) { in main()
|
D | 1-2.c | 37 int detach_state; in main() local 53 if (pthread_attr_getdetachstate(&new_attr, &detach_state) != 0) { in main() 58 if (detach_state == PTHREAD_CREATE_DETACHED) { in main()
|
/third_party/musl/porting/liteos_m/user/src/thread/ |
D | pthread_create.c | 26 int state = a_cas(&self->detach_state, DT_JOINABLE, DT_EXITING); in __pthread_exit() 31 if (self->detach_state == DT_DETACHED) { in __pthread_exit() 100 if (thread->detach_state == DT_JOINABLE) { in __thread_clone() 151 new->detach_state = DT_DETACHED; in __pthread_create() 153 new->detach_state = DT_JOINABLE; in __pthread_create()
|
D | pthread_detach.c | 11 if (a_cas(&t->detach_state, DT_JOINABLE, DT_DETACHED) != DT_JOINABLE) in __pthread_detach() 14 if (ret) a_swap(&t->detach_state, DT_JOINABLE); in __pthread_detach()
|
D | pthread_join.c | 15 switch (t->detach_state) { in __pthread_timedjoin_np()
|
/third_party/musl/src/thread/ |
D | pthread_join.c | 16 while ((state = t->detach_state) && r != ETIMEDOUT && r != EINVAL) { in __pthread_timedjoin_np() 18 r = __timedwait_cp(&t->detach_state, state, CLOCK_REALTIME, at, 1); in __pthread_timedjoin_np() 35 return t->detach_state==DT_JOINABLE ? EBUSY : __pthread_join(t, res); in __pthread_tryjoin_np()
|
D | pthread_create.c | 85 int state = a_cas(&self->detach_state, DT_JOINABLE, DT_EXITING); in __pthread_exit() 112 self->detach_state = state; in __pthread_exit() 168 a_store(&self->detach_state, DT_EXITED); in __pthread_exit() 169 __wake(&self->detach_state, 1, 1); in __pthread_exit() 328 new->detach_state = DT_DETACHED; in __pthread_create() 330 new->detach_state = DT_JOINABLE; in __pthread_create()
|
D | pthread_detach.c | 8 if (a_cas(&t->detach_state, DT_JOINABLE, DT_DETACHED) != DT_JOINABLE) in __pthread_detach()
|
D | pthread_getattr_np.c | 9 a->_a_detach = t->detach_state>=DT_DETACHED; in pthread_getattr_np()
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
D | pthread_create.c | 130 int state = a_cas(&self->detach_state, DT_JOINABLE, DT_EXITING); in __pthread_exit() 145 a_store(&self->detach_state, DT_EXITED); in __pthread_exit() 146 __wake(&self->detach_state, 1, 1); in __pthread_exit() 152 if (self->detach_state == DT_DETACHED) { in __pthread_exit() 309 new->detach_state = DT_DETACHED; in __pthread_create() 311 new->detach_state = DT_JOINABLE; in __pthread_create()
|
D | pthread_detach.c | 10 if (a_cas(&t->detach_state, DT_JOINABLE, DT_DETACHED) != DT_JOINABLE) in __pthread_detach() 13 if (ret) a_swap(&t->detach_state, DT_JOINABLE); in __pthread_detach()
|
D | pthread_join.c | 23 switch (t->detach_state) { in __pthread_timedjoin_np() 53 return t->detach_state==DT_JOINABLE ? EBUSY : __pthread_join(t, res); in __pthread_tryjoin_np()
|
D | pthread_clone.c | 19 if (thread->detach_state == DT_JOINABLE) { in __thread_clone()
|
/third_party/musl/porting/linux/user/src/thread/ |
D | pthread_create.c | 162 int state = a_cas(&self->detach_state, DT_JOINABLE, DT_EXITING); in __pthread_exit() 192 self->detach_state = state; in __pthread_exit() 248 a_store(&self->detach_state, DT_EXITED); in __pthread_exit() 249 __wake(&self->detach_state, 1, 1); in __pthread_exit() 425 new->detach_state = DT_DETACHED; in __pthread_create() 427 new->detach_state = DT_JOINABLE; in __pthread_create()
|
/third_party/musl/porting/liteos_m/user/src/internal/ |
D | pthread_impl.h | 29 volatile int detach_state; member
|
/third_party/musl/porting/linux/user/src/env/ |
D | __init_tls.c | 21 td->detach_state = DT_JOINABLE; in __init_tp()
|
/third_party/musl/porting/liteos_a/user/src/internal/ |
D | pthread_impl.h | 37 volatile int detach_state; member
|
/third_party/musl/src/env/ |
D | __init_tls.c | 21 td->detach_state = DT_JOINABLE; in __init_tp()
|
/third_party/musl/src/internal/ |
D | pthread_impl.h | 37 volatile int detach_state; member
|
/third_party/musl/porting/liteos_a/user/src/env/ |
D | __init_tls.c | 41 td->detach_state = DT_JOINABLE; in __init_tp()
|
/third_party/musl/porting/linux/user/src/internal/ |
D | pthread_impl.h | 53 volatile int detach_state; member
|