Lines Matching refs:thread
44 static void resume_common(struct pthread *thread);
48 _pthread_resume_np(pthread_t thread) in _pthread_resume_np() argument
54 if ((ret = _thr_find_thread(curthread, thread, /*include dead*/0)) == 0) { in _pthread_resume_np()
56 resume_common(thread); in _pthread_resume_np()
57 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_np()
66 struct pthread *thread; in _thr_resume_all_np() local
75 TAILQ_FOREACH(thread, &_thread_list, tle) { 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()
78 resume_common(thread); in _thr_resume_all_np()
79 THR_THREAD_UNLOCK(curthread, thread); in _thr_resume_all_np()
91 resume_common(struct pthread *thread) in resume_common() argument
94 thread->flags &= ~(THR_FLAGS_NEED_SUSPEND | THR_FLAGS_SUSPENDED); in resume_common()
95 thread->cycle++; in resume_common()
96 _thr_umtx_wake(&thread->cycle, 1, 0); in resume_common()