Use `PyGILState_GetThisThreadState` when using gil_scoped_acquire. (#1211)
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).
Showing
tests/test_gil_scoped.cpp
0 → 100644
tests/test_gil_scoped.py
0 → 100644
Please
register
or
sign in
to comment