Merge pull request #2627 from enkiller/workqueue

[components][drivers][ipc] 初始化工作对象所有成员
This commit is contained in:
Bernard Xiong 2019-04-29 09:05:09 +08:00 committed by GitHub
commit b4400c2af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ rt_inline void rt_work_init(struct rt_work *work, void (*work_func)(struct rt_wo
rt_list_init(&(work->list));
work->work_func = work_func;
work->work_data = work_data;
work->flags = 0;
work->type = 0;
}
void rt_delayed_work_init(struct rt_delayed_work *work, void (*work_func)(struct rt_work *work,