#include <cpp_workQueue.h>
|
kstat_t | init (work_handle_t handle, void *arg, tick_t dly) |
|
kstat_t | run (kworkqueue_t *workqueue) |
|
kstat_t | sched (void) |
|
kstat_t | cancel (void) |
|
kwork_t * | self (void) |
|
◆ cancel()
This function will cancel a work
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ init()
kstat_t init |
( |
work_handle_t |
handle, |
|
|
void * |
arg, |
|
|
tick_t |
dly |
|
) |
| |
This function will initialize a work
- 参数
-
[in] | handle | the call back function to run |
[in] | arg | the paraments of the function |
[in] | dly | the ticks to delay before run |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ run()
kstat_t run |
( |
kworkqueue_t * |
workqueue | ) |
|
This function will run a work on a workqueue
- 参数
-
[in] | workqueue | the workqueue to run work |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ sched()
This function will run a work on the default workqueue
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ self()
This function will get a work struct pointer
- 参数
-
- 返回
- work struct pointer
该类的文档由以下文件生成:
- /Users/yaoqiuguo/workspace/aos33/components/cplusplus/include/cpp_workQueue.h