* @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. * -
| 295 | * -RT_ERROR The ticks parameter is invalid. |
| 296 | */ |
| 297 | rt_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. |
no test coverage detected