thread Class.
更多...
#include <cpp_thread.h>
thread Class.
在文件 cpp_thread.h 第 21 行定义.
◆ prio_change()
kstat_t prio_change |
( |
uint8_t |
pri | ) |
|
This function will change the prio of task
- 参数
-
[in] | task | the task to be changed prio |
[in] | pri | the prio to be changed. |
[out] | old_pri | the old task prio to be filled with |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ self()
This function will return current thread
- 参数
-
- 返回
- 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] | millisec | the time t0 sleep |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ start()
This function will start current thread
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ stop()
This function will stop current thread
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ yield()
This function will yield current thread
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
该类的文档由以下文件生成:
- /Users/yaoqiuguo/workspace/aos33/components/cplusplus/include/cpp_thread.h