pybind11/include
Sam Gross 8443d0841e
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-08-13 09:22:44 -04:00
..
pybind11 Use PyMutex instead of std::mutex in free-threaded build. (#5219) 2024-08-13 09:22:44 -04:00