确保线程安全

This commit is contained in:
xia-chu
2021-02-07 22:02:03 +08:00
parent 75d97b9221
commit a142665375
2 changed files with 15 additions and 6 deletions

View File

@@ -92,7 +92,8 @@ private:
std::shared_ptr<FILE> _save_file_video;
ProcessInterface::Ptr _process;
MultiMediaSourceMuxer::Ptr _muxer;
std::atomic_bool _stop_rtp_check;
atomic_bool _stop_rtp_check{false};
atomic_flag _busy_flag{false};
};
}//namespace mediakit