Skip to content

Add SharedStaticCell#23

Open
bugadani wants to merge 1 commit intoembassy-rs:mainfrom
bugadani:shared
Open

Add SharedStaticCell#23
bugadani wants to merge 1 commit intoembassy-rs:mainfrom
bugadani:shared

Conversation

@bugadani
Copy link
Copy Markdown

Trying to implement the idea from last week's discussions, here is a once-writeable static cell that only provides shared access. A use case might be sharing an appropriate driver with an interrupt handler as SharedStaticCell<Mutex<T>> instead of Mutex<RefCell<Option<T>>>, or to store some immutable configuration loaded from some external source, like device info. Far fetched? Maybe :)

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.

1 participant