semaphore-rs icon indicating copy to clipboard operation
semaphore-rs copied to clipboard

`new_with_initial_values` and `attempt_restore` are unsafe

Open Dzejkop opened this issue 1 year ago • 0 comments

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

Dzejkop avatar Jun 28 '23 15:06 Dzejkop