Crates.io | lock_many |
lib.rs | lock_many |
version | 0.1.1 |
source | src |
created_at | 2022-02-16 12:57:12.817555 |
updated_at | 2022-02-17 10:08:27.72044 |
description | Retry-based locking multiple mutexes at once. |
homepage | https://github.com/monoid/junk/tree/master/lock_many |
repository | https://github.com/monoid/junk/ |
max_upload_size | |
id | 533307 |
size | 13,824 |
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 :)
The only feature is the arrayvec.