Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutex with eventual fairness #31

Open
nxrighthere opened this issue Oct 10, 2019 · 1 comment
Open

Mutex with eventual fairness #31

nxrighthere opened this issue Oct 10, 2019 · 1 comment

Comments

@nxrighthere
Copy link

nxrighthere commented Oct 10, 2019

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.

@yohhoy
Copy link
Owner

yohhoy commented Jan 24, 2020

Ref. Locking in WebKit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants