From eb10d32d8b59f2158ba64ba55e310ba0f5f24170 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 14 May 2008 23:31:15 +0000 Subject: Fix clear patch command (ticket #18). Potential destruction race/leak fixes. More thorough thread assertions on graph object methods. git-svn-id: http://svn.drobilla.net/lad/ingen@1207 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/PatchImpl.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/PatchImpl.hpp') diff --git a/src/libs/engine/PatchImpl.hpp b/src/libs/engine/PatchImpl.hpp index 94a9ebf3..209062be 100644 --- a/src/libs/engine/PatchImpl.hpp +++ b/src/libs/engine/PatchImpl.hpp @@ -88,7 +88,7 @@ public: // Patch specific stuff not inherited from Node - typedef List Nodes; + typedef List Nodes; void add_node(Nodes::Node* tn); Nodes::Node* remove_node(const string& name); @@ -105,6 +105,7 @@ public: void add_input(List::Node* port) { _input_ports.push_back(port); } ///< Preprocesser thread void add_output(List::Node* port) { _output_ports.push_back(port); } ///< Preprocessor thread List::Node* remove_port(const string& name); + void clear_ports(); void add_connection(Connections::Node* c) { _connections.push_back(c); } Connections::Node* remove_connection(const PortImpl* src_port, const PortImpl* dst_port); -- cgit v1.2.1