spin-locks

Crates.iospin-locks
lib.rsspin-locks
version0.0.2
sourcesrc
created_at2018-02-06 12:58:33.406721
updated_at2018-02-06 18:54:22.372311
descriptionAn Intel hardware-optimized spin lock that uses Hardware Lock Elision (HLE) and a non-CAS based spin lock (an OR lock) as a fast fallback.
homepagehttps://github.com/lemonrock/spin-locks
repositoryhttps://github.com/lemonrock/spin-locks.git
max_upload_size
id49850
size28,378
Raphael Cohn (raphaelcohn)

documentation

README

spin-locks

spin-locks is a rust crate that provides a Intel hardware-optimized spin lock that uses Hardware Lock Elision (HLE) and a non-CAS based spin lock (an OR lock) as a fast fallback.

These locks do not provide a Mutex or a MutexGuard to automatically unlock on drop, as they do not protect a particular item of data. This is to make it easier to adapt these locks with the use of persistent memory, which is non-stack and non-heap allocated.

Licensing

The license for this project is MIT.

Commit count: 3

cargo fmt