thread类 参考

thread Class. 更多...

#include <cpp_thread.h>

Public 成员函数

kstat_t start (void)
 
kstat_t stop (void)
 
kstat_t sleep (uint32_t millisec)
 
kstat_t yield (void)
 
ktask_t * self (void)
 
kstat_t prio_change (uint8_t pri)
 

详细描述

thread Class.

在文件 cpp_thread.h21 行定义.

成员函数说明

◆ prio_change()

kstat_t prio_change ( uint8_t  pri)

This function will change the prio of task

参数
[in]taskthe task to be changed prio
[in]prithe prio to be changed.
[out]old_prithe old task prio to be filled with
返回
the operation status, RHINO_SUCCESS is OK, others is error

◆ self()

ktask_t* self ( void  )

This function will return current thread

参数
[in]NULL
返回
the operation status, RHINO_SUCCESS is OK, others is error

◆ sleep()

kstat_t sleep ( uint32_t  millisec)

This function will cause a task to sleep for some millisec

参数
[in]millisecthe time t0 sleep
返回
the operation status, RHINO_SUCCESS is OK, others is error

◆ start()

kstat_t start ( void  )

This function will start current thread

参数
[in]NULL
返回
the operation status, RHINO_SUCCESS is OK, others is error

◆ stop()

kstat_t stop ( void  )

This function will stop current thread

参数
[in]NULL
返回
the operation status, RHINO_SUCCESS is OK, others is error

◆ yield()

kstat_t yield ( void  )

This function will yield current thread

参数
[in]NULL
返回
the operation status, RHINO_SUCCESS is OK, others is error

该类的文档由以下文件生成: