mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
[workqueue] 将rt_work_sys_workqueue_init函数私有化
This commit is contained in:
@@ -358,7 +358,7 @@ rt_err_t rt_work_cancel(struct rt_work *work)
|
||||
return rt_workqueue_cancel_work(sys_workq, work);
|
||||
}
|
||||
|
||||
int rt_work_sys_workqueue_init(void)
|
||||
static int rt_work_sys_workqueue_init(void)
|
||||
{
|
||||
if (sys_workq != RT_NULL)
|
||||
return RT_EOK;
|
||||
@@ -370,5 +370,5 @@ int rt_work_sys_workqueue_init(void)
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_PREV_EXPORT(rt_work_sys_workqueue_init);
|
||||
#endif
|
||||
#endif
|
||||
#endif /* RT_USING_SYSTEM_WORKQUEUE */
|
||||
#endif /* RT_USING_HEAP */
|
||||
|
||||
Reference in New Issue
Block a user