summaryrefslogtreecommitdiff
path: root/components/drivers/include/ipc/workqueue.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-04-22 19:28:25 +0800
committerGitHub <[email protected]>2019-04-22 19:28:25 +0800
commitca7ebe61750b27c4e85f79c29b6596bc799cf016 (patch)
treed3399e5c36d4284265071b9e0c299e078f26ad92 /components/drivers/include/ipc/workqueue.h
parentb2f39ab81c88df9a40f5e042e4e2b977aebeaca2 (diff)
parent3ada52e3538768e09b44b5819e545051e2a64063 (diff)
Merge pull request #2600 from EvalZero/master
[components][workqueue]improve delayed work for reinit.
Diffstat (limited to 'components/drivers/include/ipc/workqueue.h')
-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
-