Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/drivers/ipc/dataqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion include/rttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
*/

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

#ifndef RT_USING_ARCH_DATA_TYPE
Expand Down
Loading