summaryrefslogtreecommitdiff
path: root/components/drivers/include/ipc/workqueue.h
diff options
context:
space:
mode:
authorHubretXie <[email protected]>2019-05-16 10:22:41 +0800
committerGitHub <[email protected]>2019-05-16 10:22:41 +0800
commit9de2942b159b7d08bc79aa370008bc42eeafc1e0 (patch)
treec6ed31f70123415e96da63973a8184e96eaad824 /components/drivers/include/ipc/workqueue.h
parentfd05ad76d69e02ee2c36e8eb73781a5654073be4 (diff)
parent4539172f5c97306a322ac1768c5c8eb4f878ea3c (diff)
Merge pull request #4 from RT-Thread/master
sync
Diffstat (limited to 'components/drivers/include/ipc/workqueue.h')
-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,