Home
last modified time | relevance | path

Searched refs:detach_state (Results 1 – 24 of 24) sorted by relevance

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/
D1-1.c30 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/
D1-1.c26 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()
D1-2.c30 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/
D1-1.c37 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()
D1-2.c37 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/
Dpthread_create.c26 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()
Dpthread_detach.c11 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()
Dpthread_join.c15 switch (t->detach_state) { in __pthread_timedjoin_np()
/third_party/musl/src/thread/
Dpthread_join.c16 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()
Dpthread_create.c85 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()
Dpthread_detach.c8 if (a_cas(&t->detach_state, DT_JOINABLE, DT_DETACHED) != DT_JOINABLE) in __pthread_detach()
Dpthread_getattr_np.c9 a->_a_detach = t->detach_state>=DT_DETACHED; in pthread_getattr_np()
/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_create.c130 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()
Dpthread_detach.c10 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()
Dpthread_join.c23 switch (t->detach_state) { in __pthread_timedjoin_np()
53 return t->detach_state==DT_JOINABLE ? EBUSY : __pthread_join(t, res); in __pthread_tryjoin_np()
Dpthread_clone.c19 if (thread->detach_state == DT_JOINABLE) { in __thread_clone()
/third_party/musl/porting/linux/user/src/thread/
Dpthread_create.c162 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/
Dpthread_impl.h29 volatile int detach_state; member
/third_party/musl/porting/linux/user/src/env/
D__init_tls.c21 td->detach_state = DT_JOINABLE; in __init_tp()
/third_party/musl/porting/liteos_a/user/src/internal/
Dpthread_impl.h37 volatile int detach_state; member
/third_party/musl/src/env/
D__init_tls.c21 td->detach_state = DT_JOINABLE; in __init_tp()
/third_party/musl/src/internal/
Dpthread_impl.h37 volatile int detach_state; member
/third_party/musl/porting/liteos_a/user/src/env/
D__init_tls.c41 td->detach_state = DT_JOINABLE; in __init_tp()
/third_party/musl/porting/linux/user/src/internal/
Dpthread_impl.h53 volatile int detach_state; member