diff options
| author | tangyuxin <[email protected]> | 2019-04-28 14:31:57 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2019-04-28 14:31:57 +0800 |
| commit | 91345d62afb43ab2b57a894637e2a48ef3c9afca (patch) | |
| tree | 882adaaea3cd95b7487a25f91898df9dbf7e15bd /components | |
| parent | b57e075867ec075f520863757906ced4d181357e (diff) | |
[components][drivers][ipc] 初始化工作对象所有成员
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/include/ipc/workqueue.h | 2 |
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, |
