mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
1.Using c++14; 2.Using {} to initialize std::atomic
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -91,7 +91,7 @@ class PeerConnection {
|
||||
std::vector<std::string> user_id_list_;
|
||||
SignalStatus signal_status_ = SignalStatus::SignalClosed;
|
||||
std::mutex signal_status_mutex_;
|
||||
std::atomic<bool> leave_ = false;
|
||||
std::atomic<bool> leave_{false};
|
||||
|
||||
private:
|
||||
std::map<std::string, std::unique_ptr<IceTransmission>>
|
||||
|
||||
Reference in New Issue
Block a user