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

Function rt_work_submit

components/drivers/ipc/workqueue.c:426–429  ·  view source on GitHub ↗

* @brief Submit a work item to the system work queue with a delay. * * @param work is a pointer to the work item object. * * @param ticks is the delay OS 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. * -RT_ERROR The ticks parameter is invalid. */

Source from the content-addressed store, hash-verified

424 * -RT_ERROR The ticks parameter is invalid.
425 */
426rt_err_t rt_work_submit(struct rt_work *work, rt_tick_t ticks)
427{
428 return rt_workqueue_submit_work(sys_workq, work, ticks);
429}
430
431/**
432 * @brief Submit a work item to the system work queue without delay. This work item will be executed after the current work item.

Callers 11

lwp_teardownFunction · 0.85
rt_wlan_cyclic_checkFunction · 0.85
rtc_sync_work_funcFunction · 0.85
rt_soft_rtc_set_sourceFunction · 0.85
rtthread_timer_wrapperFunction · 0.85
pin_irqFunction · 0.85
wdt_feed_funcFunction · 0.85
wdt_feed_initFunction · 0.85

Calls 1

rt_workqueue_submit_workFunction · 0.85

Tested by

no test coverage detected