summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-04-29 09:05:09 +0800
committerGitHub <[email protected]>2019-04-29 09:05:09 +0800
commitb4400c2af2ab9d4bf22c749738abf22fbd4b6e96 (patch)
tree882adaaea3cd95b7487a25f91898df9dbf7e15bd
parentb57e075867ec075f520863757906ced4d181357e (diff)
parent91345d62afb43ab2b57a894637e2a48ef3c9afca (diff)
Merge pull request #2627 from enkiller/workqueue
[components][drivers][ipc] 初始化工作对象所有成员
-rw-r--r--components/drivers/include/ipc/workqueue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/ipc/workqueue.h b/components/drivers/include/ipc/workqueue.h
index 31dbb53ee3..354a30c04e 100644
--- a/components/drivers/include/ipc/workqueue.h
+++ b/components/drivers/include/ipc/workqueue.h
@@ -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,