1.Using c++14; 2.Using {} to initialize std::atomic

This commit is contained in:
dijunkun
2023-12-22 15:46:28 +08:00
parent d6cd6a8099
commit a309627ca3
3 changed files with 5 additions and 5 deletions

View File

@@ -57,9 +57,9 @@ class IceAgent {
std::string turn_password_ = "";
std::unique_ptr<std::thread> nice_thread_;
std::atomic<NiceAgent*> agent_ = nullptr;
std::atomic<GMainLoop*> gloop_ = nullptr;
std::atomic<bool> nice_inited_ = false;
std::atomic<NiceAgent*> agent_{nullptr};
std::atomic<GMainLoop*> gloop_{nullptr};
std::atomic<bool> nice_inited_{false};
gboolean exit_nice_thread_ = false;
bool controlling_ = false;