From c442db81fcdb01ec6404958a90f5e5da8270aaa0 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 27 Feb 2017 00:58:11 +0800 Subject: [DeviceDrivers] Fix the re-work issue in workqueue. --- components/drivers/include/rtdevice.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/drivers/include') 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 -- cgit v1.3.1