Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ CustomAutoGIL
Method
CustomAutoGIL
tests/cross_module_gil_utils.cpp:50–50 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
49
struct CustomAutoGIL {
50
CustomAutoGIL() : gstate(PyGILState_Ensure()) {}
51
~CustomAutoGIL() { PyGILState_Release(gstate); }
52
53
PyGILState_STATE gstate;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected