Lines Matching refs:thread
43 /* Set the thread name for debug. */
45 _pthread_set_name_np(pthread_t thread, const char *name)
50 if (curthread == thread) {
51 if (thr_set_name(thread->tid, name))
54 if (_thr_ref_add(curthread, thread, 0) == 0) {
55 THR_THREAD_LOCK(curthread, thread);
56 if (thread->state != PS_DEAD) {
57 if (thr_set_name(thread->tid, name))
60 THR_THREAD_UNLOCK(curthread, thread);
61 _thr_ref_delete(curthread, thread);