summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorgeniusgogo <[email protected]>2023-11-10 21:37:07 +0800
committerGitHub <[email protected]>2023-11-10 21:37:07 +0800
commit9acebb07dcea9127182ee9a4737249ff14c1ce89 (patch)
tree20296f2b489ad7e3b2d3456c684a715c4bc24c69 /include
parent589641258e3eb21ba7b5d6ce7f7da581468f5489 (diff)
fix rt_channel lock. (#8244)
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h1
1 files changed, 1 insertions, 0 deletions
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 */