| 68 | } |
| 69 | |
| 70 | PythonPluginManagerImpl::~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 | |
| 85 | void PythonPluginManagerImpl::LoadPlugin(const std::string& user, const std::string& name, |
| 86 | PluginInfoBase* pinfo) { |