BUPT-OS / RROS

RROS is a dual-kernel OS for satellites or other scenarios that need both real-time and general-purpose abilities. RROS = RTOS (Rust) + Linux (C).
https://bupt-os.github.io/website/
Other
567 stars 40 forks source link

rust: observable factory: add `observable factory` in RROS #37

Closed StevenFryto closed 7 months ago

StevenFryto commented 7 months ago

The observable factory is a key component in event-driven programming within the RROS framework. The observable mechanism is critical for real-time event management, allowing various components within the system to subscribe to and be notified of events in an efficient and timely manner, which is important in real-time applications for ensuring predictable and responsive behavior.
I have implemented basic ioctl, oob_write, and oob_read operations for observableops, so that observable elements can perform basic subscribe, oob_write, and oob_read operations. Now the observable-onchange test can pass.

ruiqurm commented 7 months ago

I have added some suggestions about the coding style. Since we have a lot of work to do currently, maybe we can refactor it later. You can add some notations if you are going to refactor. Otherwise, you can leave a comment to argue about it. Once we resolve (maybe going to resolve) all the issues, I will approve this PR.