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 set_max_level_racy and gate set_max_level #544

Merged
merged 1 commit into from
Apr 13, 2023

Commits on Jan 6, 2023

  1. Add set_max_level_racy and gate set_max_level

    Calling `set_max_level` can result in a race condition on platforms that
    don't have an atomic compare and swap implementation. This gates
    `set_max_level` behind `#[cfg(atomic_cas)]` and adds a racy alternative
    that can be called in these situations. This mirrors the approach for
    `set_logger`.
    David Koloski committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    e5f1ae9 View commit details
    Browse the repository at this point in the history