summaryrefslogtreecommitdiff
path: root/components/drivers/include/ipc
diff options
context:
space:
mode:
authorEvalZero <[email protected]>2019-04-22 11:41:17 +0800
committerEvalZero <[email protected]>2019-04-22 11:43:45 +0800
commit83b6260b3f05efafa8936c6c185480afc874d6cc (patch)
tree0998bc689a9c93f7ada038e7a82e868a3cccb1a0 /components/drivers/include/ipc
parent12a07fb6889641a46ec5a74d931674351b28b3a5 (diff)
[components][workqueue]improve delayed work for reinit.
Diffstat (limited to 'components/drivers/include/ipc')
-rw-r--r--components/drivers/include/ipc/workqueue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/include/ipc/workqueue.h b/components/drivers/include/ipc/workqueue.h
index 09dc4354a8..31dbb53ee3 100644
--- a/components/drivers/include/ipc/workqueue.h
+++ b/components/drivers/include/ipc/workqueue.h
@@ -13,7 +13,8 @@
enum
{
- RT_WORK_STATE_PENDING, /* Work item pending state */
+ RT_WORK_STATE_PENDING = 0x0001, /* Work item pending state */
+ RT_WORK_STATE_SUBMITTING = 0x0002, /* Work item submitting state */
};
/**
@@ -21,7 +22,7 @@ enum
*/
enum
{
- RT_WORK_TYPE_DELAYED,
+ RT_WORK_TYPE_DELAYED = 0x0001,
};
/* workqueue implementation */
@@ -81,4 +82,3 @@ void rt_delayed_work_init(struct rt_delayed_work *work, void (*work_func)(struct
#endif
#endif
-