[workqueue] remove rt_delayed_work_init()

This commit is contained in:
Meco Man
2021-08-01 17:26:01 +08:00
parent b73ad3cf59
commit 94ed55f34d
3 changed files with 9 additions and 23 deletions
+2 -7
View File
@@ -5,7 +5,8 @@
*
* Change Logs:
* Date Author Notes
* 2017-02-27 bernard fix the re-work issue.
* 2017-02-27 Bernard fix the re-work issue.
* 2021-08-01 Meco Man remove rt_delayed_work_init()
*/
#include <rthw.h>
@@ -339,12 +340,6 @@ rt_err_t rt_workqueue_cancel_all_work(struct rt_workqueue *queue)
return RT_EOK;
}
void rt_delayed_work_init(struct rt_delayed_work *work, void (*work_func)(struct rt_work *work,
void *work_data), void *work_data)
{
rt_work_init(&work->work, work_func, work_data);
}
#ifdef RT_USING_SYSTEM_WORKQUEUE
static struct rt_workqueue *sys_workq;