Lines Matching refs:curthread
100 if (curthread != _thr_initial) \
101 errsave = curthread->error; \
107 if (curthread != _thr_initial) \
108 curthread->error = errsave; \
116 struct pthread *curthread; in _thr_rtld_rlock_acquire() local
120 curthread = _get_curthread(); in _thr_rtld_rlock_acquire()
124 THR_CRITICAL_ENTER(curthread); in _thr_rtld_rlock_acquire()
127 curthread->rdlock_count++; in _thr_rtld_rlock_acquire()
134 struct pthread *curthread; in _thr_rtld_wlock_acquire() local
138 curthread = _get_curthread(); in _thr_rtld_wlock_acquire()
142 THR_CRITICAL_ENTER(curthread); in _thr_rtld_wlock_acquire()
151 struct pthread *curthread; in _thr_rtld_lock_release() local
156 curthread = _get_curthread(); in _thr_rtld_lock_release()
163 curthread->rdlock_count--; in _thr_rtld_lock_release()
164 THR_CRITICAL_LEAVE(curthread); in _thr_rtld_lock_release()
195 struct pthread *curthread; in _thr_dlerror_loc() local
197 curthread = _get_curthread(); in _thr_dlerror_loc()
198 return (curthread->dlerror_msg); in _thr_dlerror_loc()
204 struct pthread *curthread; in _thr_dlerror_seen() local
206 curthread = _get_curthread(); in _thr_dlerror_seen()
207 return (&curthread->dlerror_seen); in _thr_dlerror_seen()
214 struct pthread *curthread; in _thr_rtld_init() local
219 curthread = _get_curthread(); in _thr_rtld_init()
243 li.dlerror_loc_sz = sizeof(curthread->dlerror_msg); in _thr_rtld_init()
265 _thr_signal_block(curthread); in _thr_rtld_init()
267 _thr_signal_unblock(curthread); in _thr_rtld_init()
269 _thr_signal_block_setup(curthread); in _thr_rtld_init()