Commit e2b884c3 authored by Borja Zarco's avatar Borja Zarco Committed by Wenzel Jakob
Browse files

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).
parent 81da9888
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment