pybind11/include/pybind11
Sam Gross bb05e0810b
Use PyMutex instead of std::mutex in free-threaded build. (#5219)
* Use PyMutex instead of std::mutex in free-threaded build.

PyMutex is now part of the public C API as of 3.13.0b3 and generally has
slightly less overhead than std::mutex.

* style: pre-commit fixes

* Fix instance_map_shard padding

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-02 09:58:09 -07:00
..
detail Use PyMutex instead of std::mutex in free-threaded build. (#5219) 2024-07-02 09:58:09 -07:00
eigen fix: fully qualify usages of concat to protect against ADL (#4955) 2024-03-27 16:51:03 -04:00
stl feat: remove Python 3.6 support (#5177) 2024-06-22 00:55:00 -04:00
attr.h Elide to-python conversion of setter return values (#4621) 2023-05-08 10:13:54 -07:00
buffer_info.h chore(deps): update pre-commit hooks (#5084) 2024-04-02 11:14:08 -04:00
cast.h feat(types) Adds special Case for empty C++ tuple type annotation (#5214) 2024-06-30 09:52:37 -07:00
chrono.h chore: drop Python 3.5 (#3719) 2022-02-11 19:06:16 -05:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
eigen.h First draft of Eigen::Tensor support (#4201) 2022-10-18 16:54:16 -07:00
embed.h feat: remove Python 3.6 support (#5177) 2024-06-22 00:55:00 -04:00
eval.h fix: missing move in eval.h (#3775) 2022-03-02 15:25:43 -05:00
functional.h fix: fully qualify usages of concat to protect against ADL (#4955) 2024-03-27 16:51:03 -04:00
gil_safe_call_once.h Add pybind11/gil_safe_call_once.h (to fix deadlocks in pybind11/numpy.h) (#4877) 2023-10-11 21:05:31 -07:00
gil.h feat: remove Python 3.6 support (#5177) 2024-06-22 00:55:00 -04:00
iostream.h chore: add err guard to capsule destructor and add a move to iostream (#3958) 2022-05-27 14:32:57 -04:00
numpy.h fix: support free-threaded CPython with GIL disabled (#5148) 2024-06-18 13:54:38 -07:00
operators.h Reproducer and fix for issue encountered in smart_holder update. (#4228) 2022-10-09 21:50:35 -07:00
options.h Add option for enable/disable enum members in docstring. (#2768) 2022-12-08 23:10:10 -08:00
pybind11.h fix: support free-threaded CPython with GIL disabled (#5148) 2024-06-18 13:54:38 -07:00
pytypes.h fix: support free-threaded CPython with GIL disabled (#5148) 2024-06-18 13:54:38 -07:00
stl_bind.h chore(deps): update pre-commit hooks (#5084) 2024-04-02 11:14:08 -04:00
stl.h fix: fully qualify usages of concat to protect against ADL (#4955) 2024-03-27 16:51:03 -04:00
type_caster_pyobject_ptr.h Add type_caster<PyObject> (#4601) 2023-05-07 10:15:53 -07:00
typing.h Fixed a compilation error with gcc 14 (#5208) 2024-06-28 07:12:32 -07:00