Lines Matching refs:curthread

96 	if (curthread != _thr_initial)		\
97 errsave = curthread->error; \
103 if (curthread != _thr_initial) \
104 curthread->error = errsave; \
112 struct pthread *curthread; in _thr_rtld_rlock_acquire() local
116 curthread = _get_curthread(); in _thr_rtld_rlock_acquire()
120 THR_CRITICAL_ENTER(curthread); in _thr_rtld_rlock_acquire()
123 curthread->rdlock_count++; in _thr_rtld_rlock_acquire()
130 struct pthread *curthread; in _thr_rtld_wlock_acquire() local
134 curthread = _get_curthread(); in _thr_rtld_wlock_acquire()
138 THR_CRITICAL_ENTER(curthread); in _thr_rtld_wlock_acquire()
147 struct pthread *curthread; in _thr_rtld_lock_release() local
152 curthread = _get_curthread(); in _thr_rtld_lock_release()
170 curthread->rdlock_count--; in _thr_rtld_lock_release()
171 THR_CRITICAL_LEAVE(curthread); in _thr_rtld_lock_release()
202 struct pthread *curthread; in _thr_dlerror_loc() local
204 curthread = _get_curthread(); in _thr_dlerror_loc()
205 return (curthread->dlerror_msg); in _thr_dlerror_loc()
211 struct pthread *curthread; in _thr_dlerror_seen() local
213 curthread = _get_curthread(); in _thr_dlerror_seen()
214 return (&curthread->dlerror_seen); in _thr_dlerror_seen()
221 struct pthread *curthread; in _thr_rtld_init() local
226 curthread = _get_curthread(); in _thr_rtld_init()
251 li.dlerror_loc_sz = sizeof(curthread->dlerror_msg); in _thr_rtld_init()
273 _thr_signal_block(curthread); in _thr_rtld_init()
275 _thr_signal_unblock(curthread); in _thr_rtld_init()
277 _thr_signal_block_setup(curthread); in _thr_rtld_init()