From 9acebb07dcea9127182ee9a4737249ff14c1ce89 Mon Sep 17 00:00:00 2001 From: geniusgogo <2041245+geniusgogo@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:37:07 +0800 Subject: fix rt_channel lock. (#8244) --- include/rtdef.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/rtdef.h b/include/rtdef.h index 670a0944cf..c2cececbbd 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -1449,6 +1449,7 @@ struct rt_channel { struct rt_ipc_object parent; /**< inherit from object */ struct rt_thread *reply; /**< the thread will be reply */ + struct rt_spinlock slock; /**< spinlock of this channel */ rt_list_t wait_msg; /**< the wait queue of sender msg */ rt_list_t wait_thread; /**< the wait queue of sender thread */ rt_wqueue_t reader_queue; /**< channel poll queue */ -- cgit v1.3.1