-
Notifications
You must be signed in to change notification settings - Fork 35
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
Implement std::thread
-like wrappers around Furi Thread APIs
#49
Conversation
|
||
/// A unique identifier for a running thread. | ||
#[cfg(feature = "alloc")] | ||
pub struct ThreadId(sys::FuriThreadId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sys::FuriThreadId
is really an alias for FreeRTOS's TaskHandle_t
. There might be some time that you need this for talking with the low-level FreeRTOS APIs, so you probably want to use #[repr(transparent)]
or just make ThreadId
a type alias.
where | ||
W: ufmt::uWrite + ?Sized, | ||
{ | ||
// TODO: ufmt doesn't provide an impl of uDebug for &str. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems quite the omission. 😦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The upstream issue is japaric/ufmt#52.
Force-pushed to fix thread memory freeing and add |
Force-pushed to add logging around the thread waiter logic. |
Force-pushed to use the newly-stabilised |
Force-pushed to bump the pinned nightly to one where |
Bumps pinned nightly to one where `Arc::into_inner` is stabilized.
Force-pushed to use |
No description provided.