Changeset View
Changeset View
Standalone View
Standalone View
lib/libthr/thread/thr_create.c
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | #endif | ||||
__sys_sigprocmask(SIG_SETMASK, &set, NULL); | __sys_sigprocmask(SIG_SETMASK, &set, NULL); | ||||
} | } | ||||
#ifdef _PTHREAD_FORCED_UNWIND | #ifdef _PTHREAD_FORCED_UNWIND | ||||
curthread->unwind_stackend = (char *)curthread->attr.stackaddr_attr + | curthread->unwind_stackend = (char *)curthread->attr.stackaddr_attr + | ||||
curthread->attr.stacksize_attr; | curthread->attr.stacksize_attr; | ||||
#endif | #endif | ||||
__rseq_abi_init(); | |||||
/* Run the current thread's start routine with argument: */ | /* Run the current thread's start routine with argument: */ | ||||
_pthread_exit(curthread->start_routine(curthread->arg)); | _pthread_exit(curthread->start_routine(curthread->arg)); | ||||
/* This point should never be reached. */ | /* This point should never be reached. */ | ||||
PANIC("Thread has resumed after exit"); | PANIC("Thread has resumed after exit"); | ||||
} | } |