fix rt_channel lock. (#8244)

This commit is contained in:
geniusgogo
2023-11-10 21:37:07 +08:00
committed by GitHub
parent 589641258e
commit 9acebb07dc
4 changed files with 253 additions and 189 deletions

View File

@@ -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 */