Searched refs:join_state (Results 1 - 6 of 6) sorted by relevance

/bionic/libc/bionic/
H A Dpthread_detach.cpp42 !atomic_compare_exchange_weak(&thread->join_state, &old_state, THREAD_DETACHED)) {
H A Dpthread_join.cpp46 !atomic_compare_exchange_weak(&thread->join_state, &old_state, THREAD_JOINED)) {
56 // We set thread->join_state to THREAD_JOINED with atomic operation,
H A Dpthread_internal.h82 _Atomic(ThreadJoinState) join_state; member in struct:pthread_internal_t
H A Dpthread_exit.cpp96 !atomic_compare_exchange_weak(&thread->join_state, &old_state, THREAD_EXITED_NOT_JOINED)) {
H A Dpthread_create.cpp97 atomic_init(&thread->join_state, THREAD_NOT_JOINED);
99 atomic_init(&thread->join_state, THREAD_DETACHED);
276 atomic_store(&thread->join_state, THREAD_DETACHED);
H A Dpthread_attr.cpp173 // We prefer reading join_state here to setting thread->attr.flags in pthread_detach.
175 if (atomic_load(&thread->join_state) == THREAD_DETACHED) {

Completed in 347 milliseconds