elast0ny / shared_memory

A Rust wrapper around native shared memory for Linux and Windows
380 stars 51 forks source link

Add support for read-only mapping #100

Open phil-opp opened 1 year ago

phil-opp commented 1 year ago

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

phil-opp commented 1 year ago

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

phil-opp commented 1 year ago

@elast0ny Friendly ping :)