Lines Matching refs:curthread

137 	struct pthread *curthread = _get_curthread();  in thread_unwind_stop()  local
146 cfa >= (uintptr_t)curthread->unwind_stackend) { in thread_unwind_stop()
150 while ((cur = curthread->cleanup) != NULL && in thread_unwind_stop()
168 struct pthread *curthread = _get_curthread(); in thread_unwind() local
170 curthread->ex.exception_class = 0; in thread_unwind()
171 curthread->ex.exception_cleanup = thread_unwind_cleanup; in thread_unwind()
172 _Unwind_ForcedUnwind(&curthread->ex, thread_unwind_stop, NULL); in thread_unwind()
212 struct pthread *curthread = _get_curthread(); local
215 if (curthread->cancelling)
218 "1996 s16.2.5.2 does not allow this!", curthread);
221 curthread->cancelling = 1;
222 curthread->no_cancel = 1;
223 curthread->cancel_async = 0;
224 curthread->cancel_point = 0;
227 if (curthread->unblock_sigcancel) {
230 curthread->unblock_sigcancel = 0;
237 curthread->ret = status;
246 if (curthread->unwind_disabled) {
258 while (curthread->cleanup != NULL) {
267 while (curthread->cleanup != NULL) {
279 struct pthread *curthread = _get_curthread(); local
281 free(curthread->name);
282 curthread->name = NULL;
285 if (curthread->specific != NULL) {
301 THR_LOCK(curthread);
302 curthread->state = PS_DEAD;
303 if (curthread->flags & THR_FLAGS_NEED_SUSPEND) {
304 curthread->cycle++;
305 _thr_umtx_wake(&curthread->cycle, INT_MAX, 0);
307 if (!curthread->force_exit && SHOULD_REPORT_EVENT(curthread, TD_DEATH))
308 _thr_report_death(curthread);
313 curthread->refcount--;
314 _thr_try_gc(curthread, curthread); /* thread lock released */
317 if (THR_IN_CRITICAL(curthread))
318 PANIC("thread %p exits with resources held!", curthread);
324 thr_exit(&curthread->tid);