TuyaOS
类型定义 | 函数
ty_work_queue.h 文件参考

provide work queue operate api 更多...

#include "tuya_cloud_types.h"
ty_work_queue.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

类型定义

typedef VOID(* TY_WK_CB) (VOID *data)
 call back prototype of work
 

函数

OPERATE_RET ty_work_queue_add (IN CONST TY_WK_CB cb, IN CONST VOID *data)
 add work to work queue 更多...
 
UINT_T ty_work_queue_depth (VOID)
 get current work number in work queue. 更多...
 
OPERATE_RET ty_work_queue_init (VOID)
 init ty work queue 更多...
 

详细描述

provide work queue operate api

版本
0.1
日期
2010-09-09

函数说明

◆ ty_work_queue_add()

OPERATE_RET ty_work_queue_add ( IN CONST TY_WK_CB  cb,
IN CONST VOID *  data 
)

add work to work queue

参数
[in]cb,callback of work
[in]data,parameterof call back
注解
This API is used for add work to work queue
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ ty_work_queue_depth()

UINT_T ty_work_queue_depth ( VOID  )

get current work number in work queue.

参数
[in]NONE
注解
This API is used for get the current work number in work queue.
返回
current work number in the work queue

◆ ty_work_queue_init()

OPERATE_RET ty_work_queue_init ( VOID  )

init ty work queue

参数
[in]NONE
注解
This API is used for init work queue
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h