MCPcopy Create free account
hub / github.com/pybind/pybind11 / ~CustomAutoGIL

Method ~CustomAutoGIL

tests/cross_module_gil_utils.cpp:51–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49struct CustomAutoGIL {
50 CustomAutoGIL() : gstate(PyGILState_Ensure()) {}
51 ~CustomAutoGIL() { PyGILState_Release(gstate); }
52
53 PyGILState_STATE gstate;
54};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected