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

Henryiii/refactor/pep703 arg #22

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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
  2. refactor: use py::gil_not_used()

    Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
    henryiii committed May 30, 2024
    Configuration menu
    Copy the full SHA
    170e36f View commit details
    Browse the repository at this point in the history
  3. fix: support more compilers

    Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
    henryiii committed May 30, 2024
    Configuration menu
    Copy the full SHA
    9f9204f View commit details
    Browse the repository at this point in the history
  4. refactor: try using comma eating __VA_ARGS__

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

Commits on May 31, 2024

  1. fix: try to avoid an unused var warning

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