XWOS API
4.0
XWOS C/C++ API参考手册
|
动态线程 更多...
#include <DThd.hxx>
Public 成员函数 | |
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) | |
动态线程构造函数 | |
~DThd () | |
xwer_t | getCtorRc () |
xwer_t | intr () |
xwer_t | quit () |
xwer_t | join (xwer_t *trc) |
xwer_t | stop (xwer_t *trc) |
xwer_t | detach () |
struct xwos_thd * | getXwosObj () |
xwer_t | acquire () |
xwer_t | release () |
Protected 成员函数 | |
virtual xwer_t | thdMainFunction () |
void | yield () |
void | exit (xwer_t rc) |
bool | shouldFreeze () |
bool | shouldStop () |
xwer_t | sleep (xwtm_t dur) |
xwer_t | sleepTo (xwtm_t to) |
xwer_t | sleepFrom (xwtm_t *from, xwtm_t dur) |
xwer_t | freeze (void) |
静态 Private 成员函数 | |
static xwer_t | sThdMainFunction (DThd *thd) |
Private 属性 | |
xwos_thd_d | mThdDesc |
xwer_t | mCtorRc |
xwos::DThd::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 |
||
) |
动态线程构造函数
[in] | name | 线程名 |
[in] | stack_size | 线程栈的大小 |
[in] | stack_guard_size | 栈内存警戒线位置 |
[in] | priority | 优先级 |
[in] | detached | 是否为分离态 |
[in] | privileged | 是否为特权线程 |
|
protectedvirtual |
线程主函数,用户需要重新实现此函数
|
private |