Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ ~CustomAutoNoGIL
Method
~CustomAutoNoGIL
tests/cross_module_gil_utils.cpp:57–57 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
struct CustomAutoNoGIL {
56
CustomAutoNoGIL() : save(PyEval_SaveThread()) {}
57
~CustomAutoNoGIL() { PyEval_RestoreThread(save); }
58
59
PyThreadState *save;
60
};
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected