MCPcopy Create free account
hub / github.com/TuGraph-family/tugraph-db / ~PythonPluginManagerImpl

Method ~PythonPluginManagerImpl

src/plugin/python_plugin.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70PythonPluginManagerImpl::~PythonPluginManagerImpl() {
71 _kill_task->Cancel();
72 KillAllProcesses();
73 std::lock_guard<std::mutex> l(_mtx);
74 auto it = _marked_processes.begin();
75 while (it != _marked_processes.end()) {
76 if ((*it)->IsAlive()) {
77 // kill process force
78 (*it)->Kill(true);
79 }
80 it++;
81 }
82 _marked_processes.clear();
83}
84
85void PythonPluginManagerImpl::LoadPlugin(const std::string& user, const std::string& name,
86 PluginInfoBase* pinfo) {

Callers

nothing calls this directly

Calls 6

IsAliveMethod · 0.80
CancelMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
KillMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected