Lines Matching refs:curthread
50 struct pthread *curthread = _get_curthread(); in _pthread_resume_np() local
54 if ((ret = _thr_find_thread(curthread, thread, /*include dead*/0)) == 0) { in _pthread_resume_np()
57 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_np()
65 struct pthread *curthread = _get_curthread(); in _thr_resume_all_np() local
69 old_nocancel = curthread->no_cancel; in _thr_resume_all_np()
70 curthread->no_cancel = 1; in _thr_resume_all_np()
71 _thr_suspend_all_lock(curthread); in _thr_resume_all_np()
73 THREAD_LIST_RDLOCK(curthread); in _thr_resume_all_np()
76 if (thread != curthread) { in _thr_resume_all_np()
77 THR_THREAD_LOCK(curthread, thread); in _thr_resume_all_np()
79 THR_THREAD_UNLOCK(curthread, thread); in _thr_resume_all_np()
84 THREAD_LIST_UNLOCK(curthread); in _thr_resume_all_np()
85 _thr_suspend_all_unlock(curthread); in _thr_resume_all_np()
86 curthread->no_cancel = old_nocancel; in _thr_resume_all_np()
87 _thr_testcancel(curthread); in _thr_resume_all_np()