Lines Matching refs:curthread
43 pthread_t curthread = tls_get_curthread(); in backout_join() local
46 THREAD_LIST_LOCK(curthread); in backout_join()
48 THREAD_LIST_UNLOCK(curthread); in backout_join()
72 pthread_t curthread = tls_get_curthread(); in join_common() local
82 if (pthread == curthread) in join_common()
85 THREAD_LIST_LOCK(curthread); in join_common()
86 if ((ret = _thr_find_thread(curthread, pthread, 1)) != 0) { in join_common()
95 THREAD_LIST_UNLOCK(curthread); in join_common()
99 pthread->joiner = curthread; in join_common()
101 THREAD_LIST_UNLOCK(curthread); in join_common()
103 THR_CLEANUP_PUSH(curthread, backout_join, pthread); in join_common()
104 oldcancel = _thr_cancel_enter(curthread); in join_common()
124 _thr_cancel_leave(curthread, oldcancel); in join_common()
125 THR_CLEANUP_POP(curthread, 0); in join_common()
128 THREAD_LIST_LOCK(curthread); in join_common()
130 THREAD_LIST_UNLOCK(curthread); in join_common()
134 THREAD_LIST_LOCK(curthread); in join_common()
138 THREAD_LIST_UNLOCK(curthread); in join_common()