Locker
Utility locker
- simple named mutex/locker for rust-lang concurrency with no dependencies.
Example
Basic usage of Locker
:
use Arc;
use Locker;
let locker = new;
let locker_clone = locker.clone;
let name = "name";
let first = locker.get_mutex; // locks
let _ = first.lock.unwrap;
spawn;
// unlocks first mutex
Run test
To run tests: