Lines Matching refs:curthread
42 _thr_report_creation(struct pthread *curthread, struct pthread *newthread) in _thr_report_creation() argument
44 curthread->event_buf.event = TD_CREATE; in _thr_report_creation()
45 curthread->event_buf.th_p = (uintptr_t)newthread; in _thr_report_creation()
46 curthread->event_buf.data = 0; in _thr_report_creation()
47 THR_UMUTEX_LOCK(curthread, &_thr_event_lock); in _thr_report_creation()
48 _thread_last_event = curthread; in _thr_report_creation()
51 THR_UMUTEX_UNLOCK(curthread, &_thr_event_lock); in _thr_report_creation()
55 _thr_report_death(struct pthread *curthread) in _thr_report_death() argument
57 curthread->event_buf.event = TD_DEATH; in _thr_report_death()
58 curthread->event_buf.th_p = (uintptr_t)curthread; in _thr_report_death()
59 curthread->event_buf.data = 0; in _thr_report_death()
60 THR_UMUTEX_LOCK(curthread, &_thr_event_lock); in _thr_report_death()
61 _thread_last_event = curthread; in _thr_report_death()
64 THR_UMUTEX_UNLOCK(curthread, &_thr_event_lock); in _thr_report_death()