test_gil_scoped.cpp
1.27 KB
-
Use `PyGILState_GetThisThreadState` when using gil_scoped_acquire. (#1211) · e2b884c3
This avoids GIL deadlocking when pybind11 tries to acquire the GIL in a thread that already acquired it using standard Python API (e.g. when running from a Python thread).
Borja Zarco committed