semaphore-rs
semaphore-rs copied to clipboard
`new_with_initial_values` and `attempt_restore` are unsafe
Not a big concern, since we never have other processes using the mmapped file, but the safety requirements of MmapOptions::with_file
demand that we have exclusive mutable access to the file.
We should add file locking using a crate like fd-lock