summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-02-27 00:58:11 +0800
committerBernard Xiong <[email protected]>2017-02-27 00:58:11 +0800
commitc442db81fcdb01ec6404958a90f5e5da8270aaa0 (patch)
tree65fb5dfcdb18884ef1f0d21093a0eb91809de4c5 /components/drivers/include
parent5e20f41638058f399d2462647abb48341f94cf96 (diff)
[DeviceDrivers] Fix the re-work issue in workqueue.
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/rtdevice.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index 3b22248c97..74406e82f9 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -150,8 +150,9 @@ struct rt_data_queue
/* workqueue implementation */
struct rt_workqueue
{
- rt_list_t work_list;
- rt_thread_t work_thread;
+ rt_list_t work_list;
+ struct rt_work *work_current; /* current work */
+ rt_thread_t work_thread;
};
struct rt_work