first commit

This commit is contained in:
cxh 2025-09-10 12:52:38 +08:00
parent b5b24b38e6
commit d7887e385f

View File

@ -57,10 +57,10 @@ int main()
RTSPManager::start(g_app_config.cameras); RTSPManager::start(g_app_config.cameras);
rtsp_thread_exited.store(true, std::memory_order_relaxed); }); rtsp_thread_exited.store(true, std::memory_order_relaxed); });
std::thread mqtt_thread([&]() // std::thread mqtt_thread([&]()
{ // {
mqtt_client_thread_func(); // mqtt_client_thread_func();
mqtt_thread_exited.store(true, std::memory_order_relaxed); }); // mqtt_thread_exited.store(true, std::memory_order_relaxed); });
// 等待退出信号 // 等待退出信号
while (g_running.load(std::memory_order_relaxed)) while (g_running.load(std::memory_order_relaxed))