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

fix: make gil_safe_call_once thread-safe in free-threaded CPython #5246

Merged
merged 3 commits into from
Jul 16, 2024

Commits on Jul 16, 2024

  1. fix: Make gil_safe_call_once thread-safe in free-threaded CPython

    The "is_initialized_" flags is not protected by the GIL in free-threaded
    Python, so it needs to be an atomic field.
    
    Fixes pybind#5245
    colesbury committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d87b0db View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    49179c6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e2b323 View commit details
    Browse the repository at this point in the history