Lines Matching refs:curthread
45 _thr_report_creation(struct pthread *curthread, struct pthread *newthread) in _thr_report_creation() argument
47 curthread->event_buf.event = TD_CREATE; in _thr_report_creation()
48 curthread->event_buf.th_p = (uintptr_t)newthread; in _thr_report_creation()
49 curthread->event_buf.data = 0; in _thr_report_creation()
50 THR_UMUTEX_LOCK(curthread, &_thr_event_lock); in _thr_report_creation()
51 _thread_last_event = curthread; in _thr_report_creation()
54 THR_UMUTEX_UNLOCK(curthread, &_thr_event_lock); in _thr_report_creation()
58 _thr_report_death(struct pthread *curthread) in _thr_report_death() argument
60 curthread->event_buf.event = TD_DEATH; in _thr_report_death()
61 curthread->event_buf.th_p = (uintptr_t)curthread; in _thr_report_death()
62 curthread->event_buf.data = 0; in _thr_report_death()
63 THR_UMUTEX_LOCK(curthread, &_thr_event_lock); in _thr_report_death()
64 _thread_last_event = curthread; in _thr_report_death()
67 THR_UMUTEX_UNLOCK(curthread, &_thr_event_lock); in _thr_report_death()