This Rust library implements a simple
spinlock, and is safe for
Include the following code in your Cargo.toml
 = "0.5"
lock on a
Mutex you will get a reference to the data. When this
reference is dropped, the lock will be unlocked.
extern crate spin;
To share the lock, an
Arc<Mutex<T>> may be used.
The behaviour of these lock is similar to their namesakes in
differ on the following:
- The lock will not be poisoned in case of failure;