MCPcopy Create free account
hub / github.com/pybind/pybind11 / CustomAutoNoGIL

Method CustomAutoNoGIL

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

Source from the content-addressed store, hash-verified

54};
55struct CustomAutoNoGIL {
56 CustomAutoNoGIL() : save(PyEval_SaveThread()) {}
57 ~CustomAutoNoGIL() { PyEval_RestoreThread(save); }
58
59 PyThreadState *save;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected