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

maps/ringbuf: make RingBuf: Send + Sync #843

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

ajwerner
Copy link
Member

There was no reason for them not to be -- the APIs all require mutable references and hold onto mutable references, so there cannot be internal concurrency. The !Send + !Sync came from the MMap, but not for any good reason.

Copy link

netlify bot commented Nov 25, 2023

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c06fcc3
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/65622fcd9bd8820008c59684
😎 Deploy Preview https://deploy-preview-843--aya-rs-docs.netlify.app/src/aya/maps/ring_buf.rs
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

mergify bot commented Nov 25, 2023

Hey @alessandrod, this pull request changes the Aya Public API and requires your review.

@mergify mergify bot requested a review from alessandrod November 25, 2023 17:11
@mergify mergify bot added api/needs-review Makes an API change that needs review aya This is about aya (userspace) test A PR that improves test cases or CI labels Nov 25, 2023
There was no reason for them not to be -- the APIs all require mutable
references and hold onto mutable references, so there cannot be internal
concurrency. The !Send + !Sync came from the MMap, but not for any good
reason.
@ajwerner
Copy link
Member Author

TFTR!

@ajwerner ajwerner merged commit 931cd55 into aya-rs:main Nov 25, 2023
21 checks passed
@ajwerner ajwerner deleted the ringbuf-send-sync branch November 25, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api/needs-review Makes an API change that needs review aya This is about aya (userspace) test A PR that improves test cases or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants