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

Add support for read-only mapping #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phil-opp
Copy link

This is for example useful for a producer/consumer use-case, where the consumer is not permitted to modify the data.

@phil-opp
Copy link
Author

What do you think about adding an assert!(self.config.writable) to Shmem::as_slice_mut?

@phil-opp
Copy link
Author

@elast0ny Friendly ping :)

phil-opp added a commit to phil-opp/shared_memory that referenced this pull request Jun 21, 2023
There was no reaction on elast0ny#100 for multiple months, so we decided to create a fork for now.
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