WorkQueue Class.
更多...
#include <cpp_workQueue.h>
|
kstat_t | create (const name_t *name, uint8_t pri, cpu_stack_t *stack_buf, size_t stack_size) |
|
kstat_t | destory (void) |
|
kworkqueue_t * | self (void) |
|
◆ create()
kstat_t create |
( |
const name_t * |
name, |
|
|
uint8_t |
pri, |
|
|
cpu_stack_t * |
stack_buf, |
|
|
size_t |
stack_size |
|
) |
| |
This function will creat a workqueue
- 参数
-
[in] | name | the name of workqueue/worker, which should be unique |
[in] | pri | the priority of the worker |
[in] | stack_buf | the stack of the worker(task) |
[in] | stack_size | the size of the worker-stack |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ destory()
This function will delete a workqueue
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ self()
kworkqueue_t* self |
( |
void |
| ) |
|
This function will get a workqueue struct pointer
- 参数
-
- 返回
- workqueue struct pointer
该类的文档由以下文件生成:
- /Users/yaoqiuguo/workspace/aos33/components/cplusplus/include/cpp_workQueue.h