MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / py_safe_run

Function py_safe_run

src/pythonfmu/PySlaveInstance.cpp:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void py_safe_run(const std::function<void(PyGILState_STATE gilState)>& f)
123{
124 PyGILState_STATE gil_state = PyGILState_Ensure();
125 f(gil_state);
126 PyGILState_Release(gil_state);
127}
128
129} // namespace
130

Callers 15

PySlaveInstanceMethod · 0.85
SetupExperimentMethod · 0.85
StepMethod · 0.85
ResetMethod · 0.85
TerminateMethod · 0.85
SetRealMethod · 0.85
SetIntegerMethod · 0.85
SetBooleanMethod · 0.85
SetStringMethod · 0.85
GetRealMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected