Lines Matching refs:curthread
95 if (curthread != _thr_initial) \
96 errsave = curthread->error; \
102 if (curthread != _thr_initial) \
103 curthread->error = errsave; \
111 struct pthread *curthread; in _thr_rtld_rlock_acquire() local
115 curthread = _get_curthread(); in _thr_rtld_rlock_acquire()
119 THR_CRITICAL_ENTER(curthread); in _thr_rtld_rlock_acquire()
122 curthread->rdlock_count++; in _thr_rtld_rlock_acquire()
129 struct pthread *curthread; in _thr_rtld_wlock_acquire() local
133 curthread = _get_curthread(); in _thr_rtld_wlock_acquire()
137 THR_CRITICAL_ENTER(curthread); in _thr_rtld_wlock_acquire()
146 struct pthread *curthread; in _thr_rtld_lock_release() local
151 curthread = _get_curthread(); in _thr_rtld_lock_release()
169 curthread->rdlock_count--; in _thr_rtld_lock_release()
170 THR_CRITICAL_LEAVE(curthread); in _thr_rtld_lock_release()
201 struct pthread *curthread; in _thr_dlerror_loc() local
203 curthread = _get_curthread(); in _thr_dlerror_loc()
204 return (curthread->dlerror_msg); in _thr_dlerror_loc()
210 struct pthread *curthread; in _thr_dlerror_seen() local
212 curthread = _get_curthread(); in _thr_dlerror_seen()
213 return (&curthread->dlerror_seen); in _thr_dlerror_seen()
220 struct pthread *curthread; in _thr_rtld_init() local
225 curthread = _get_curthread(); in _thr_rtld_init()
250 li.dlerror_loc_sz = sizeof(curthread->dlerror_msg); in _thr_rtld_init()
272 _thr_signal_block(curthread); in _thr_rtld_init()
274 _thr_signal_unblock(curthread); in _thr_rtld_init()
276 _thr_signal_block_setup(curthread); in _thr_rtld_init()