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

Function rt_workqueue_cancel_work

components/drivers/ipc/workqueue.c:343–349  ·  view source on GitHub ↗

* @brief Cancel a work item in the work queue. * * @param queue is a pointer to the workqueue object. * * @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

341 * -RT_EBUSY This work item is executing.
342 */
343rt_err_t rt_workqueue_cancel_work(struct rt_workqueue *queue, struct rt_work *work)
344{
345 RT_ASSERT(work != RT_NULL);
346 RT_ASSERT(queue != RT_NULL);
347
348 return _workqueue_cancel_work(queue, work);
349}
350
351/**
352 * @brief Cancel a work item in the work queue. If the work item is executing, this function will block until it is done.

Callers 5

rt_work_cancelFunction · 0.85
cancle_work_test01Function · 0.85
cancle_work_test02Function · 0.85
cancle_work_test03Function · 0.85
cancle_delay_work_test01Function · 0.85

Calls 1

_workqueue_cancel_workFunction · 0.85

Tested by

no test coverage detected