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

Use fetch_update instead of compare_exchange_weak #1119

Merged
merged 2 commits into from
Jan 26, 2024

Commits on Jan 26, 2024

  1. Use fetch_update in the par_bridge

    Its manual `compare_exchange_weak` loop was exactly what `fetch_update`
    does internally, so we might as well simplify our code.
    cuviper committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    926aed3 View commit details
    Browse the repository at this point in the history
  2. Use fetch_update in find_first/last

    Its manual `compare_exchange_weak` loop was exactly what `fetch_update`
    does internally, and we can also improve on the case where the current
    best index was already equal.
    cuviper committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    a4da641 View commit details
    Browse the repository at this point in the history