Skip to content

[Bug] 在开中断的情况下waitqueue可能醒不来 #11068

@specialshoot

Description

@specialshoot

RT-Thread Version

master

Hardware Type/Architectures

loongarch

Develop Toolchain

GCC

Describe the bug

rt_wqueue_wait_interrupt可能会一直睡眠。
原因是condition是一个整数而不是指针或其他,调用前和运行中condition可能会变化,但是由于不是指针,内部无法察觉。
更改建议:
方案1(优选): 如linux的wait queue代码,将函数定义改为宏定义
方案2: 增加指针传入的方法

Other additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions