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

Method WriteBoostUpInfoForPid

src/render/rd_app.cpp:585–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583 }
584
585 void RdApplication::WriteBoostUpInfoForPid(uint32_t pid) {
586 if (!app_shared_message_) {
587 LOGE("Don't have app_shared_message_");
588 return;
589 }
590 auto shm_name = std::format("application_shm_{}", pid);
591 std::string shm_buffer;
592 shm_buffer.resize(sizeof(AppSharedMessage));
593 memcpy(shm_buffer.data(), app_shared_message_.get(), sizeof(AppSharedMessage));
594 app_shared_info_->WriteData(shm_name, shm_buffer);
595 }
596
597 void RdApplication::SendAudioSpectrumMessage() {
598 auto st = RdStatistics::Instance();

Callers 1

InitMessagesMethod · 0.95

Calls 1

WriteDataMethod · 0.80

Tested by

no test coverage detected