diff options
| author | sp-cai <[email protected]> | 2024-04-22 20:20:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-22 20:20:35 +0800 |
| commit | 554632f1eee19eca27310b3c813fd1a5f8acca48 (patch) | |
| tree | 157a98d9fa9a2450bfcaa1258223d3d0279ae73a /components/drivers/ipc/dataqueue.c | |
| parent | e50f064bda5322ed73aa1a05e982d9f3c9a0eb3f (diff) | |
[ipc] [dataqueue] 修复队列 pop 挂起的线程 push 无法恢复运行的错误 (#8839)
队列在 push 后查找挂起列表时使用了错误的挂起列表。
Diffstat (limited to 'components/drivers/ipc/dataqueue.c')
| -rw-r--r-- | components/drivers/ipc/dataqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/ipc/dataqueue.c b/components/drivers/ipc/dataqueue.c index b62730617c..337c5114bf 100644 --- a/components/drivers/ipc/dataqueue.c +++ b/components/drivers/ipc/dataqueue.c @@ -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 */ |
