MCPcopy Create free account
hub / github.com/LBANN/lbann / global_interpreter_lock

Method global_interpreter_lock

src/utils/python.cpp:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146// ---------------------------------------------
147
148global_interpreter_lock::global_interpreter_lock()
149{
150 initialize(); // Make sure Python is running
151 m_gil_state = PyGILState_Ensure();
152}
153
154global_interpreter_lock::~global_interpreter_lock()
155{

Callers

nothing calls this directly

Calls 1

initializeFunction · 0.70

Tested by

no test coverage detected