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

Add barging mutex a 2nd relax param #15

Merged
merged 2 commits into from
Jul 28, 2024
Merged

Conversation

pedromfedricci
Copy link
Owner

Breaking changes:

  • mcslock::barging::Mutex now has two generic parameters for its relax strategies: Rs and Rq. The first generic parameter refers to the shared lock relax strategy during contention. The second refers to the queue's lock hand-off relax strategy. The most common pattern is to use a backoff relax strategy for the shared lock, while keeping a non-backoff relax strategy for the handoffs.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.02%. Comparing base (dbde0cc) to head (419317a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
- Coverage   99.51%   99.02%   -0.49%     
==========================================
  Files           5        5              
  Lines         205      205              
==========================================
- Hits          204      203       -1     
- Misses          1        2       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pedromfedricci pedromfedricci merged commit 51ac2c6 into main Jul 28, 2024
9 checks passed
@pedromfedricci pedromfedricci deleted the barging_2nd_relax_param branch July 28, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants