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

Method On1Second

src/render/plugins/plugin_manager.cpp:376–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374 }
375
376 void PluginManager::On1Second() {
377 context_->PostTask([=, this]() {
378 auto connected_client_count = this->GetTotalConnectedClientsCount();
379 //LOGI("connected_client_count: {}", connected_client_count);
380 VisitAllPlugins([=, this](GrPluginInterface* plugin) {
381 plugin->On1Second();
382
383 // connected clients count
384 {
385 auto event = std::make_shared<MsgConnectedClientCount>();
386 event->connected_client_count_ = connected_client_count;
387 plugin->DispatchAppEvent(event);
388 }
389 });
390 });
391 }
392
393 void PluginManager::DumpPluginInfo() {
394 LOGI("====> Total plugins: {}", plugins_.size());

Callers 1

InitMessagesMethod · 0.45

Calls 3

PostTaskMethod · 0.45
DispatchAppEventMethod · 0.45

Tested by

no test coverage detected