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: support free-threaded CPython with GIL disabled #5148

Merged
merged 10 commits into from
Jun 18, 2024

Commits on May 30, 2024

  1. Support free-threaded CPython (PEP 703)

    Some additional locking is added in the free-threaded build when
    `Py_GIL_DISABLED` is defined:
    
    - Most accesses to internals are protected by a single mutex
    - The registered_instances uses a striped lock to improve concurrency
    
    Pybind11 modules can indicate support for running with the GIL disabled
    by calling `set_gil_not_used()`.
    colesbury authored and henryiii committed May 30, 2024
    Configuration menu
    Copy the full SHA
    e5470eb View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. refactor: use PYBIND11_MODULE (#11)

    Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
    henryiii authored May 31, 2024
    Configuration menu
    Copy the full SHA
    1831bde View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. Address code review

    colesbury committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    0a57d1d View commit details
    Browse the repository at this point in the history
  2. Suppress MSVC warning

    colesbury committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    f53dcb5 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Changes from review

    colesbury committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    2a29578 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85f3ff4 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Merge branch 'master' into pep703-support

    Ralf W. Grosse-Kunstleve committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    3cafb88 View commit details
    Browse the repository at this point in the history
  2. py::mod_gil_not_used() suggestion.

    Ralf W. Grosse-Kunstleve committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    44d1fc7 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'pep703-support' of https://github.com/colesbury/pybind11

    …into pep703-support
    Ralf W. Grosse-Kunstleve committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    c61f197 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d40299a View commit details
    Browse the repository at this point in the history