mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 09:38:24 +00:00
[ipc] [dataqueue] 修复队列 pop 挂起的线程 push 无法恢复运行的错误 (#8839)
队列在 push 后查找挂起列表时使用了错误的挂起列表。
This commit is contained in:
@@ -165,7 +165,7 @@ rt_err_t rt_data_queue_push(struct rt_data_queue *queue,
|
||||
}
|
||||
|
||||
/* there is at least one thread in suspended list */
|
||||
if (rt_susp_list_dequeue(&queue->suspended_push_list,
|
||||
if (rt_susp_list_dequeue(&queue->suspended_pop_list,
|
||||
RT_THREAD_RESUME_RES_THR_ERR))
|
||||
{
|
||||
/* unlock and perform a schedule */
|
||||
|
||||
Reference in New Issue
Block a user