Work类 参考

#include <cpp_workQueue.h>

Public 成员函数

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)
 

详细描述

在文件 cpp_workQueue.h52 行定义.

成员函数说明

◆ cancel()

kstat_t cancel ( void  )

This function will cancel a work

参数
[in]none
返回
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]handlethe call back function to run
[in]argthe paraments of the function
[in]dlythe 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]workqueuethe workqueue to run work
返回
the operation status, RHINO_SUCCESS is OK, others is error

◆ sched()

kstat_t sched ( void  )

This function will run a work on the default workqueue

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

◆ self()

kwork_t* self ( void  )

This function will get a work struct pointer

参数
[in]none
返回
work struct pointer

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