MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_work_cancel

Function rt_work_cancel

components/drivers/ipc/workqueue.c:451–454  ·  view source on GitHub ↗

* @brief Cancel a work item in the system work queue. * * @param work is a pointer to the work item object. * * @return RT_EOK Success. * -RT_EBUSY This work item is executing. */

Source from the content-addressed store, hash-verified

449 * -RT_EBUSY This work item is executing.
450 */
451rt_err_t rt_work_cancel(struct rt_work *work)
452{
453 return rt_workqueue_cancel_work(sys_workq, work);
454}
455
456static int rt_work_sys_workqueue_init(void)
457{

Calls 1

rt_workqueue_cancel_workFunction · 0.85

Tested by

no test coverage detected