XWOS API
4.0
XWOS C/C++ API参考手册
|
静态线程 更多...
#include <SThd.hxx>
Public 成员函数 | |
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) | |
静态线程构造函数 | |
~SThd () | |
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 | grab () |
xwer_t | put () |
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 成员函数 | |
void | operator delete (void *obj)=delete |
静态 Private 成员函数 | |
static xwer_t | sThdMainFunction (SThd *thd) |
static void * | operator new (xwsz_t sz)=delete |
Private 属性 | |
xwos_thd_d | mThdDesc |
struct xwos_thd | mThd |
xwer_t | mCtorRc |
xwos::SThd::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 |
||
) |
静态线程构造函数
[in] | name | 线程名 |
[in] | stack | 线程栈内存 |
[in] | stack_size | 线程栈的大小 |
[in] | stack_guard_size | 栈内存警戒线位置 |
[in] | priority | 优先级 |
[in] | detached | 是否为分离态 |
[in] | privileged | 是否为特权线程 |
|
privatedelete |
|
staticprivatedelete |
|
protectedvirtual |
线程主函数,用户需要重新实现此函数
|
private |