Skip to content
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

Provide safe wrappers for thread notification API #190

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Conversation

dcoles
Copy link
Collaborator

@dcoles dcoles commented Nov 15, 2024

Furi provides access to FreeRTOS Task Notification feature which can be used for syncronization between threads.

Task notifications act as u32 bitmask, so can be used to signal multiple potential interesting states on the target thread.

crates/flipperzero/src/furi/thread.rs Outdated Show resolved Hide resolved
crates/flipperzero/src/furi/thread.rs Show resolved Hide resolved
crates/flipperzero/src/furi/thread.rs Outdated Show resolved Hide resolved
crates/flipperzero/src/furi/thread.rs Outdated Show resolved Hide resolved
Furi provides access to [FreeRTOS Task Notification](https://freertos.org/Documentation/02-Kernel/02-Kernel-features/03-Direct-to-task-notifications/01-Task-notifications)
feature which can be used for syncronization between threads.

Task notifications act as `u32` bitmask, so can be used to signal multiple
potential interesting states on the target thread.
@dcoles
Copy link
Collaborator Author

dcoles commented Nov 23, 2024

@JarvisCraft Thanks for the review. I've accepted your suggestions and added the repr(transparent) annotation.

@dcoles dcoles merged commit 2907c45 into main Nov 24, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants