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

Method CheckRenderAlive

src/render_panel/gr_system_monitor.cpp:247–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245 }
246
247 Response<bool, bool> GrSystemMonitor::CheckRenderAlive() {
248 auto resp = Response<bool, bool>::Make(false, false);
249 auto processes = ProcessHelper::GetProcessList(false);
250 if (processes.empty()) {
251 return resp;
252 }
253 resp.ok_ = true;
254
255 LOGI("-------------------------------------------------------------------");
256 for (auto& p : processes) {
257 LOGI("p.exe_name: {}", p->exe_full_path_);
258 if (p->exe_full_path_.find(kGammaRayRenderName) != std::string::npos) {
259 resp.value_ = true;
260 //LOGI("Yes, find it.");
261 break;
262 }
263 }
264 return resp;
265 }
266
267 void GrSystemMonitor::CheckServiceAlive() {
268 tc::ServiceStatus serv_status = this->service_manager_->QueryStatus();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected