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

MpMcQueue: add MpMcQueueView, similar to VecView on top of #486 #488

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

sosthene-nitrokey
Copy link
Contributor

This would supersede #484. We need to pay attention to the Drop impl depending on the order we merge PRs

This adds a couple of methods to the Storage sealed trait to deal with the fact that Borrow cannot be used in concurrent code:

  • One to safely get the length of the buffer from a pointer to it
  • One to get a pointer to the beginning of the slice

src/storage.rs Outdated Show resolved Hide resolved
Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@Dirbaio Dirbaio added this pull request to the merge queue Jul 1, 2024
Merged via the queue into rust-embedded:main with commit 55ed7c2 Jul 1, 2024
22 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.

None yet

2 participants