yamc
yamc copied to clipboard
Mutex with eventual fairness
Hey, first of all, thanks for the collections, it works as intended!
Would you interested in implementation of mutex variation with support of eventual fairness similar to https://docs.rs/parking_lot/0.7.1/parking_lot/type.Mutex.html for example?
The goal is to ensure that the lock will be fair on average rather than immediate.
Something like:
yamc::eventual_fair::mutex
yamc::eventual_fair::recursive_mutex
yamc::eventual_fair::timed_mutex
yamc::eventual_fair::recursive_timed_mutex
yamc::eventual_fair::shared_mutex
yamc::eventual_fair::shared_timed_mutex
Would be great.
Ref. Locking in WebKit