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,
virtual xwer_t thdMainFunction()
static xwer_t sThdMainFunction(SThd *thd)
SThd(const char *name, xwstk_t *stack, 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_init(struct xwos_thd *thd, xwos_thd_d *thdd, const struct xwos_thd_attr *attr, xwos_thd_f thdfunc, void *arg)
XWOS API:静态方式初始化线程