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

Method KillAllProcesses

src/plugin/python_plugin.cpp:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void PythonPluginManagerImpl::KillAllProcesses() {
246 LOG_DEBUG() << "Killing all python processes";
247 std::lock_guard<std::mutex> l(_mtx);
248 for (auto& p : _free_processes) {
249 p->Kill();
250 _marked_processes.insert(std::move(p));
251 }
252 _free_processes.clear();
253 for (auto& p : _busy_processes) {
254 p->MarkToKill();
255 }
256 _busy_processes.clear();
257}
258
259void PythonPluginManagerImpl::CleanUpIdleProcessesNoLock() {
260 auto it = _free_processes.rbegin();

Callers

nothing calls this directly

Calls 4

MarkToKillMethod · 0.80
KillMethod · 0.45
insertMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected