WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_workqueue

函数

int osal_workqueue_init (osal_workqueue *work, osal_workqueue_handler handler)
 This API is used to initialization of workqueue.
 
int osal_workqueue_schedule (osal_workqueue *work)
 put work task in global workqueue.
 
void osal_workqueue_destroy (osal_workqueue *work)
 This API is used to destroy workqueue.
 
int osal_workqueue_flush (osal_workqueue *work)
 wait for a work to finish executing the last queueing instance.
 

详细描述

函数说明

◆ osal_workqueue_destroy()

void osal_workqueue_destroy ( osal_workqueue work)

This API is used to destroy workqueue.

Description:
This API is used to destroy workqueue.
参数
work[in] The work to be destroyed.
注意
this api may free memory, work should be from osal_workqueue_init.
Support System:
linux liteos freertos.

◆ osal_workqueue_flush()

int osal_workqueue_flush ( osal_workqueue work)

wait for a work to finish executing the last queueing instance.

Description:
wait for a work to finish executing the last queueing instance. Wait until work has finished execution. work is guaranteed to be idle on return if it hasn't been requeued since flush started.
参数
work[in] The work to flush.
Support System:
linux liteos.

◆ osal_workqueue_init()

int osal_workqueue_init ( osal_workqueue work,
osal_workqueue_handler  handler 
)

This API is used to initialization of workqueue.

Description:
This API is used to initialization of workqueue.
参数
work[in/out] the workqueue to be initialized.
handler[in/out] the workqueue callback handler function.
Support System:
linux liteos freertos.

◆ osal_workqueue_schedule()

int osal_workqueue_schedule ( osal_workqueue work)

put work task in global workqueue.

Description:
put work task in global workqueue. This puts a job in the kernel-global workqueue if it was not already queued and leaves it in the same position on the kernel-global workqueue otherwise.
参数
work[in] Job to be done.
返回
True/False
Support System:
linux liteos freertos.