Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

enable_preempt 和 disable_preempt 函数存在 bug #6

@zflcs

Description

@zflcs

在 lib.rs 文件下的 enable_preempt 和 disable_preempt 函数需要确保 TaskInner 在 AxTask 的字段的偏移为 0,而 AxTask 是根据 scheduler 中定义的泛型数据结构定义的,虽然 inner 在第一个字段,但编译器不会保证这个顺序。

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