From 1119a2c71a5f6b4e23ac0a19784705002ca9cefd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 20 Apr 2011 03:30:03 +0000 Subject: Move disconnect_all to CommonInterface and implement in clients. Factor out process thread implementation of Disconnect into Disconnect::Impl. Implement DisconnectAll in terms of DisconnectImpl rather than abusing Disconnect. Dramatically reduce notification communication overhead of DisconnectAll. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3179 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/ThreadedSigClientInterface.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/ThreadedSigClientInterface.hpp') diff --git a/src/client/ThreadedSigClientInterface.hpp b/src/client/ThreadedSigClientInterface.hpp index 00bd2767..d9f89503 100644 --- a/src/client/ThreadedSigClientInterface.hpp +++ b/src/client/ThreadedSigClientInterface.hpp @@ -57,6 +57,7 @@ public: , object_deleted_slot(signal_object_deleted.make_slot()) , object_moved_slot(signal_object_moved.make_slot()) , disconnection_slot(signal_disconnection.make_slot()) + , disconnect_all_slot(signal_disconnect_all.make_slot()) , variable_change_slot(signal_variable_change.make_slot()) , property_change_slot(signal_property_change.make_slot()) , port_value_slot(signal_port_value.make_slot()) @@ -103,6 +104,9 @@ public: void disconnect(const Raul::Path& src_port_path, const Raul::Path& dst_port_path) { push_sig(sigc::bind(disconnection_slot, src_port_path, dst_port_path)); } + void disconnect_all(const Raul::Path& parent_patch_path, const Raul::Path& path) + { push_sig(sigc::bind(disconnect_all_slot, parent_patch_path, path)); } + void set_property(const Raul::URI& subject, const Raul::URI& key, const Raul::Atom& value) { push_sig(sigc::bind(property_change_slot, subject, key, value)); } @@ -135,6 +139,7 @@ private: sigc::slot object_deleted_slot; sigc::slot object_moved_slot; sigc::slot disconnection_slot; + sigc::slot disconnect_all_slot; sigc::slot variable_change_slot; sigc::slot property_change_slot; sigc::slot port_value_slot; -- cgit v1.2.1