Changeset View
Changeset View
Standalone View
Standalone View
lib/libthr/thread/thr_create.c
Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
thread_start(struct pthread *curthread) | thread_start(struct pthread *curthread) | ||||
{ | { | ||||
sigset_t set; | sigset_t set; | ||||
if (curthread->attr.suspend == THR_CREATE_SUSPENDED) | if (curthread->attr.suspend == THR_CREATE_SUSPENDED) | ||||
set = curthread->sigmask; | set = curthread->sigmask; | ||||
_thr_signal_block_setup(curthread); | |||||
/* | /* | ||||
* This is used as a serialization point to allow parent | * This is used as a serialization point to allow parent | ||||
* to report 'new thread' event to debugger or tweak new thread's | * to report 'new thread' event to debugger or tweak new thread's | ||||
* attributes before the new thread does real-world work. | * attributes before the new thread does real-world work. | ||||
*/ | */ | ||||
THR_LOCK(curthread); | THR_LOCK(curthread); | ||||
THR_UNLOCK(curthread); | THR_UNLOCK(curthread); | ||||
Show All 28 Lines |