From 5994178571afa3483d2a52ce78646d4161153ea5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 6 Oct 2011 14:48:26 +0000 Subject: Simpler providers/dependants implementation. Raul::List is no longer necessary here since these lists are only accessed in the pre-processing thread. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3531 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/CompiledPatch.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/server/CompiledPatch.hpp') diff --git a/src/server/CompiledPatch.hpp b/src/server/CompiledPatch.hpp index 519b5a2a..2fe701c0 100644 --- a/src/server/CompiledPatch.hpp +++ b/src/server/CompiledPatch.hpp @@ -19,6 +19,7 @@ #define INGEN_ENGINE_COMPILEDPATCH_HPP #include +#include #include @@ -34,14 +35,14 @@ class NodeImpl; /** All information required about a node to execute it in an audio thread. */ struct CompiledNode { - CompiledNode(NodeImpl* n, size_t np, Raul::List* d) + CompiledNode(NodeImpl* n, size_t np, const std::list& d) : _node(n), _n_providers(np) { // Copy to a vector for maximum iteration speed and cache optimization // (Need to take a copy anyway) - _dependants.reserve(d->size()); - for (Raul::List::iterator i = d->begin(); i != d->end(); ++i) + _dependants.reserve(d.size()); + for (std::list::const_iterator i = d.begin(); i != d.end(); ++i) _dependants.push_back(*i); } -- cgit v1.2.1