mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35: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::string turn_password_ = "";
|
||||||
|
|
||||||
std::unique_ptr<std::thread> nice_thread_;
|
std::unique_ptr<std::thread> nice_thread_;
|
||||||
std::atomic<NiceAgent*> agent_ = nullptr;
|
std::atomic<NiceAgent*> agent_{nullptr};
|
||||||
std::atomic<GMainLoop*> gloop_ = nullptr;
|
std::atomic<GMainLoop*> gloop_{nullptr};
|
||||||
std::atomic<bool> nice_inited_ = false;
|
std::atomic<bool> nice_inited_{false};
|
||||||
|
|
||||||
gboolean exit_nice_thread_ = false;
|
gboolean exit_nice_thread_ = false;
|
||||||
bool controlling_ = false;
|
bool controlling_ = false;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class PeerConnection {
|
|||||||
std::vector<std::string> user_id_list_;
|
std::vector<std::string> user_id_list_;
|
||||||
SignalStatus signal_status_ = SignalStatus::SignalClosed;
|
SignalStatus signal_status_ = SignalStatus::SignalClosed;
|
||||||
std::mutex signal_status_mutex_;
|
std::mutex signal_status_mutex_;
|
||||||
std::atomic<bool> leave_ = false;
|
std::atomic<bool> leave_{false};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::map<std::string, std::unique_ptr<IceTransmission>>
|
std::map<std::string, std::unique_ptr<IceTransmission>>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ set_version("0.0.1")
|
|||||||
set_license("LGPL-3.0")
|
set_license("LGPL-3.0")
|
||||||
|
|
||||||
add_rules("mode.release", "mode.debug")
|
add_rules("mode.release", "mode.debug")
|
||||||
set_languages("c++17")
|
set_languages("c++14")
|
||||||
|
|
||||||
set_installdir("$(projectdir)/out")
|
set_installdir("$(projectdir)/out")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user