lock_many

Crates.iolock_many
lib.rslock_many
version0.1.1
sourcesrc
created_at2022-02-16 12:57:12.817555
updated_at2022-02-17 10:08:27.72044
descriptionRetry-based locking multiple mutexes at once.
homepagehttps://github.com/monoid/junk/tree/master/lock_many
repositoryhttps://github.com/monoid/junk/
max_upload_size
id533307
size13,824
Ivan Boldyrev (monoid)

documentation

README

Rust crate for locking serverl locks at once. The implementation follows the gcc's libstdc++: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/std/mutex#L635-L682

The implemented algorithm is the "smart and polite" algorithm from the https://howardhinnant.github.io/dining_philosophers.html.

Please note that this implementation may theoretically livelock under particular high-contended lock patterns. Just avoid them :)

Features

The only feature is the arrayvec.

Commit count: 143

cargo fmt