From 90ec397d97664cbfcac1471289c455ac291fa154 Mon Sep 17 00:00:00 2001 From: cxh Date: Wed, 15 Oct 2025 10:05:31 +0800 Subject: [PATCH] temp --- include/rtmp_manager.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/rtmp_manager.hpp b/include/rtmp_manager.hpp index 700ba6c..a9a14b0 100644 --- a/include/rtmp_manager.hpp +++ b/include/rtmp_manager.hpp @@ -58,11 +58,11 @@ private: }; // RTMPManager 内部增加 - std::mutex stop_queue_mutex; - std::condition_variable stop_cv; - std::queue> stop_queue; - std::atomic stop_thread_running{false}; - std::thread stop_thread; + static std::mutex stop_queue_mutex; + static std::condition_variable stop_cv; + static std::queue> stop_queue; + static std::atomic stop_thread_running{false}; + static std::thread stop_thread; // store unique_ptr to avoid copy/move issues with atomic/thread static std::unordered_map> streams; static std::mutex streams_mutex;