Lines Matching refs:curthread
305 * been initialized (_thr_initial == NULL && curthread == NULL), or
308 * by curthread != NULL)
311 _libpthread_init(struct pthread *curthread)
316 if (_thr_initial != NULL && curthread == NULL)
333 if (curthread == NULL) {
336 curthread = _thr_alloc(NULL);
337 if (curthread == NULL)
339 init_main_thread(curthread);
347 THR_LIST_ADD(curthread);
351 _tcb_set(curthread->tcb);
354 _thr_initial = curthread;
358 _thr_report_creation(curthread, curthread);