20 xwpr_t priority,
bool detached,
bool privileged)
21 : mThdDesc{nullptr, 0}
26 .stack_size = stack_size,
27 .stack_guard_size = stack_guard_size,
30 .privileged = privileged,
static xwer_t sThdMainFunction(DThd *thd)
virtual xwer_t thdMainFunction()
DThd(const char *name, xwsz_t stack_size, xwsz_t stack_guard_size=XWOS_STACK_GUARD_SIZE_DEFAULT, xwpr_t priority=XWOS_SKD_PRIORITY_RT_MIN, bool detached=false, bool privileged=true)
动态线程构造函数
xwer_t(* xwos_thd_f)(void *)
XWOS API:线程函数指针类型
static xwer_t xwos_thd_create(xwos_thd_d *thdd, const struct xwos_thd_attr *attr, xwos_thd_f thdfunc, void *arg)
XWOS API:使用动态申请内存方式创建线程并初始化