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

Function rt_workqueue_submit_work

components/drivers/ipc/workqueue.c:297–304  ·  view source on GitHub ↗

* @brief Submit a work item to the work queue with a delay. * * @param queue is a pointer to the workqueue object. * * @param work is a pointer to the work item object. * * @param ticks is the delay ticks for the work item to be submitted to the work queue. * * NOTE: The max timeout tick should be no more than (RT_TICK_MAX/2 - 1) * * @return RT_EOK Success. * -

Source from the content-addressed store, hash-verified

295 * -RT_ERROR The ticks parameter is invalid.
296 */
297rt_err_t rt_workqueue_submit_work(struct rt_workqueue *queue, struct rt_work *work, rt_tick_t ticks)
298{
299 RT_ASSERT(queue != RT_NULL);
300 RT_ASSERT(work != RT_NULL);
301 RT_ASSERT(ticks < RT_TICK_MAX / 2);
302
303 return _workqueue_submit_work(queue, work, ticks);
304}
305
306/**
307 * @brief Submit a work item to the work queue without delay. This work item will be executed after the current work item.

Callers 15

sdhci_finish_mrqFunction · 0.85
sdhci_irqFunction · 0.85
sdhci_timeout_data_timerFunction · 0.85
rt_work_submitFunction · 0.85
do_work_testFunction · 0.85
do_delay_work_testFunction · 0.85
cancle_work_test01Function · 0.85
cancle_work_test02Function · 0.85
cancle_work_test03Function · 0.85
cancle_work_test04Function · 0.85
cancle_delay_work_test01Function · 0.85
repeat_work_test01Function · 0.85

Calls 1

_workqueue_submit_workFunction · 0.85

Tested by

no test coverage detected