[ipc] [dataqueue] 修复队列 pop 挂起的线程 push 无法恢复运行的错误 (#8839)

队列在 push 后查找挂起列表时使用了错误的挂起列表。
This commit is contained in:
sp-cai 2024-04-22 20:20:35 +08:00 committed by GitHub
parent e50f064bda
commit 554632f1ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 */ /* 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)) RT_THREAD_RESUME_RES_THR_ERR))
{ {
/* unlock and perform a schedule */ /* unlock and perform a schedule */

View File

@ -33,7 +33,7 @@ extern "C" {
*/ */
typedef int rt_bool_t; /**< boolean type */ typedef int rt_bool_t; /**< boolean type */
typedef signed long rt_base_t; /**< Nbit CPU related date type */ typedef signed long rt_base_t; /**< Nbit CPU related data type */
typedef unsigned long rt_ubase_t; /**< Nbit unsigned CPU related data type */ typedef unsigned long rt_ubase_t; /**< Nbit unsigned CPU related data type */
#ifndef RT_USING_ARCH_DATA_TYPE #ifndef RT_USING_ARCH_DATA_TYPE