From 30cb85c307b4c1273791721a782337742ade222c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 4 Oct 2006 21:45:20 +0000 Subject: Moved generic utility stuff to new library "raul". git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/ClientBroadcaster.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libs/engine/ClientBroadcaster.cpp') diff --git a/src/libs/engine/ClientBroadcaster.cpp b/src/libs/engine/ClientBroadcaster.cpp index a214131a..6e722024 100644 --- a/src/libs/engine/ClientBroadcaster.cpp +++ b/src/libs/engine/ClientBroadcaster.cpp @@ -40,7 +40,7 @@ namespace Ingen { /** Register a client to receive messages over the notification band. */ void -ClientBroadcaster::register_client(const ClientKey key, CountedPtr client) +ClientBroadcaster::register_client(const ClientKey key, SharedPtr client) { bool found = false; for (ClientList::iterator i = _clients.begin(); i != _clients.end(); ++i) @@ -48,7 +48,7 @@ ClientBroadcaster::register_client(const ClientKey key, CountedPtr >(key, client)); + _clients.push_back(pair >(key, client)); cout << "[ClientBroadcaster] Registered client " << key.uri() << " (" << _clients.size() << " clients)" << endl; } else { @@ -103,7 +103,7 @@ ClientBroadcaster::unregister_client(const ClientKey& key) * (A responder is passed to remove the dependency on liblo addresses in request * events, in anticipation of libom and multiple ways of responding to clients). */ -CountedPtr +SharedPtr ClientBroadcaster::client(const ClientKey& key) { for (ClientList::iterator i = _clients.begin(); i != _clients.end(); ++i) @@ -112,7 +112,7 @@ ClientBroadcaster::client(const ClientKey& key) cerr << "[ClientBroadcaster] Failed to find client." << endl; - return CountedPtr(); + return SharedPtr(); } @@ -124,7 +124,7 @@ ClientBroadcaster::send_error(const string& msg) } void -ClientBroadcaster::send_plugins_to(CountedPtr client, const list& plugin_list) +ClientBroadcaster::send_plugins_to(SharedPtr client, const list& plugin_list) { #if 0 // FIXME: This probably isn't actually thread safe -- cgit v1.2.1