yamc icon indicating copy to clipboard operation
yamc copied to clipboard

Mutex with eventual fairness

Open nxrighthere opened this issue 5 years ago • 1 comments

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.

nxrighthere avatar Oct 10 '19 11:10 nxrighthere

Ref. Locking in WebKit

yohhoy avatar Jan 24 '20 09:01 yohhoy