diff options
Diffstat (limited to 'src/server/Broadcaster.hpp')
-rw-r--r-- | src/server/Broadcaster.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/Broadcaster.hpp b/src/server/Broadcaster.hpp index ba471bc2..3a7eaf44 100644 --- a/src/server/Broadcaster.hpp +++ b/src/server/Broadcaster.hpp @@ -20,11 +20,10 @@ #include <atomic> #include <list> #include <map> +#include <mutex> #include <set> #include <string> -#include <glibmm/thread.h> - #include "ingen/Interface.hpp" #include "ingen/types.hpp" @@ -85,7 +84,7 @@ public: void send_plugins_to(Interface*, const BlockFactory::Plugins& plugin_list); #define BROADCAST(msg, ...) \ - Glib::Mutex::Lock lock(_clients_mutex); \ + std::lock_guard<std::mutex> lock(_clients_mutex); \ for (const auto& c : _clients) \ c.second->msg(__VA_ARGS__) @@ -147,7 +146,7 @@ private: typedef std::map< Raul::URI, SPtr<Interface> > Clients; - Glib::Mutex _clients_mutex; + std::mutex _clients_mutex; Clients _clients; std::set<Raul::URI> _broadcastees; std::atomic<bool> _must_broadcast; |