_thr_alloc
if ((new_thread = _thr_alloc(curthread)) == NULL)
curthread = _thr_alloc(NULL);
pthread_t _thr_alloc(pthread_t);