|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
函数 | |
| int | osal_delayedwork_init (osal_delayedwork *work, osal_delayedwork_handler handler) |
| This API is used to initialization of delayedwork. | |
| void | osal_delayedwork_destroy (osal_delayedwork *work) |
| This API is used to destroy the delayedwork. | |
| int | osal_delayedwork_schedule (osal_delayedwork *work, int timeout) |
| put work task in global workqueue after delay. | |
| int | osal_delayedwork_cancel_sync (osal_delayedwork *work) |
| cancel a delayed work and wait for it to finish. | |
| int osal_delayedwork_cancel_sync | ( | osal_delayedwork * | work | ) |
cancel a delayed work and wait for it to finish.
| work | [in] The delayed work cancel. |
| void osal_delayedwork_destroy | ( | osal_delayedwork * | work | ) |
This API is used to destroy the delayedwork.
| work | [in] The delayedwork to be destroyed. |
| int osal_delayedwork_init | ( | osal_delayedwork * | work, |
| osal_delayedwork_handler | handler | ||
| ) |
This API is used to initialization of delayedwork.
| work | [in/out] The delayedwork to be initialized. |
| handler | [in/out] The delayedwork callback handler function. |
| int osal_delayedwork_schedule | ( | osal_delayedwork * | work, |
| int | timeout | ||
| ) |
put work task in global workqueue after delay.
| work | [in] Job to be done. |
| timeout | [in] Number of jiffies to wait or 0 for immediate execution. |