WorkQueue类 参考

WorkQueue Class. 更多...

#include <cpp_workQueue.h>

Public 成员函数

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)
 

详细描述

WorkQueue Class.

在文件 cpp_workQueue.h19 行定义.

成员函数说明

◆ 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]namethe name of workqueue/worker, which should be unique
[in]prithe priority of the worker
[in]stack_bufthe stack of the worker(task)
[in]stack_sizethe size of the worker-stack
返回
the operation status, RHINO_SUCCESS is OK, others is error

◆ destory()

kstat_t destory ( void  )

This function will delete a workqueue

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

◆ self()

kworkqueue_t* self ( void  )

This function will get a workqueue struct pointer

参数
[in]none
返回
workqueue struct pointer

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