summaryrefslogtreecommitdiffstats
path: root/src/server/Broadcaster.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Broadcaster.hpp')
-rw-r--r--src/server/Broadcaster.hpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/server/Broadcaster.hpp b/src/server/Broadcaster.hpp
index c766ceed..5a414432 100644
--- a/src/server/Broadcaster.hpp
+++ b/src/server/Broadcaster.hpp
@@ -22,10 +22,10 @@
#include "ingen/Interface.hpp"
#include "ingen/Message.hpp"
#include "ingen/URI.hpp"
-#include "ingen/memory.hpp"
#include "raul/Noncopyable.hpp"
#include <atomic>
+#include <memory>
#include <mutex>
#include <set>
@@ -45,17 +45,18 @@ public:
Broadcaster() = default;
~Broadcaster() override;
- void register_client(const SPtr<Interface>& client);
- bool unregister_client(const SPtr<Interface>& client);
+ void register_client(const std::shared_ptr<Interface>& client);
+ bool unregister_client(const std::shared_ptr<Interface>& client);
- void set_broadcast(const SPtr<Interface>& client, bool broadcast);
+ void
+ set_broadcast(const std::shared_ptr<Interface>& client, bool broadcast);
/** Ignore a client when broadcasting.
*
* This is used to prevent feeding back updates to the client that
* initiated a property set in the first place.
*/
- void set_ignore_client(const SPtr<Interface>& client)
+ void set_ignore_client(const std::shared_ptr<Interface>& client)
{
_ignore_client = client;
}
@@ -109,14 +110,14 @@ public:
private:
friend class Transfer;
- using Clients = std::set<SPtr<Interface>>;
+ using Clients = std::set<std::shared_ptr<Interface>>;
- std::mutex _clients_mutex;
- Clients _clients;
- std::set< SPtr<Interface> > _broadcastees;
- std::atomic<bool> _must_broadcast{false};
- unsigned _bundle_depth{0};
- SPtr<Interface> _ignore_client;
+ std::mutex _clients_mutex;
+ Clients _clients;
+ std::set<std::shared_ptr<Interface>> _broadcastees;
+ std::atomic<bool> _must_broadcast{false};
+ unsigned _bundle_depth{0};
+ std::shared_ptr<Interface> _ignore_client;
};
} // namespace server