Lines Matching refs:curthread

85 	struct pthread *curthread;  in _thr_atfork()  local
93 curthread = _get_curthread(); in _thr_atfork()
97 THR_CRITICAL_ENTER(curthread); in _thr_atfork()
101 THR_CRITICAL_LEAVE(curthread); in _thr_atfork()
109 struct pthread *curthread; in __pthread_cxa_finalize() local
114 curthread = _get_curthread(); in __pthread_cxa_finalize()
115 THR_CRITICAL_ENTER(curthread); in __pthread_cxa_finalize()
126 THR_CRITICAL_LEAVE(curthread); in __pthread_cxa_finalize()
140 struct pthread *curthread; in __thr_fork() local
150 curthread = _get_curthread(); in __thr_fork()
151 cancelsave = curthread->no_cancel; in __thr_fork()
152 curthread->no_cancel = 1; in __thr_fork()
164 _thr_signal_block(curthread); in __thr_fork()
174 __thr_malloc_prefork(curthread); in __thr_fork()
193 curthread->cancel_pending = 0; in __thr_fork()
194 curthread->flags &= ~(THR_FLAGS_NEED_SUSPEND|THR_FLAGS_DETACHED); in __thr_fork()
200 curthread->tlflags &= ~TLFLAGS_IN_TDLIST; in __thr_fork()
204 __thr_malloc_postfork(curthread); in __thr_fork()
207 thr_self(&curthread->tid); in __thr_fork()
210 _thr_umutex_init(&curthread->lock); in __thr_fork()
211 _mutex_fork(curthread); in __thr_fork()
222 _libpthread_init(curthread); in __thr_fork()
234 _thr_signal_unblock(curthread); in __thr_fork()
242 curthread->no_cancel = cancelsave; in __thr_fork()
250 __thr_malloc_postfork(curthread); in __thr_fork()
257 _thr_signal_unblock(curthread); in __thr_fork()
266 curthread->no_cancel = cancelsave; in __thr_fork()
268 if (curthread->cancel_async) in __thr_fork()
269 _thr_testcancel(curthread); in __thr_fork()