MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / StopDesktopRender

Method StopDesktopRender

src/service/render_manager.cpp:94–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 bool RenderManager::StopDesktopRender() {
95 LOGW(" *** StopDesktopRender ***");
96 if (desktop_render_process_) {
97 ProcessHelper::CloseProcess(desktop_render_process_->pid_);
98 desktop_render_process_ = nullptr;
99 }
100
101 // kill all
102 auto processes = ProcessHelper::GetProcessList(false);
103 for (auto& p : processes) {
104 if (p->exe_full_path_.find(kGammaRayRenderName) != std::string::npos) {
105 ProcessHelper::CloseProcess(p->pid_);
106 }
107 }
108
109 return true;
110 }
111
112 bool RenderManager::ReStartDesktopRender(const std::string& work_dir, const std::string& app_path, const std::vector<std::string>& _args) {
113 std::stringstream ss;

Callers 3

ReStartDesktopRenderMethod · 0.95
OnConsoleConnectMethod · 0.80
ProcessStopRenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected