* @brief Submit a work item to the work queue without delay. * * @param queue is a pointer to the workqueue object. * * @param work is a pointer to the work item object. * * @return RT_EOK Success. */
| 273 | * @return RT_EOK Success. |
| 274 | */ |
| 275 | rt_err_t rt_workqueue_dowork(struct rt_workqueue *queue, struct rt_work *work) |
| 276 | { |
| 277 | RT_ASSERT(queue != RT_NULL); |
| 278 | RT_ASSERT(work != RT_NULL); |
| 279 | |
| 280 | return _workqueue_submit_work(queue, work, 0); |
| 281 | } |
| 282 | |
| 283 | /** |
| 284 | * @brief Submit a work item to the work queue with a delay. |
no test coverage detected