named-lock
This crate provides a simple and cross-platform implementation of named locks. You can use this to lock sections between processes.
Example
use NamedLock;
use Result;
Implementation
On UNIX this is implemented by using files and flock. The path of the
created lock file will be $TMPDIR/<name>.lock, or /tmp/<name>.lock if
TMPDIR environment variable is not set.
On Windows this is implemented by creating named mutex with CreateMutexW.