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()
189 struct pthread *curthread; in _thr_rtld_init() local
194 curthread = _get_curthread(); in _thr_rtld_init()
236 _thr_signal_block(curthread); in _thr_rtld_init()
238 _thr_signal_unblock(curthread); in _thr_rtld_init()