diff options
author | David Robillard <d@drobilla.net> | 2011-10-06 14:48:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-06 14:48:26 +0000 |
commit | 5994178571afa3483d2a52ce78646d4161153ea5 (patch) | |
tree | 10c2943cc754807833aad6a1f9a19fb94c4d22f5 /src/server/CompiledPatch.hpp | |
parent | 37e686ac346bdb77386dc3f7307ff956d40f2643 (diff) | |
download | ingen-5994178571afa3483d2a52ce78646d4161153ea5.tar.gz ingen-5994178571afa3483d2a52ce78646d4161153ea5.tar.bz2 ingen-5994178571afa3483d2a52ce78646d4161153ea5.zip |
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
Diffstat (limited to 'src/server/CompiledPatch.hpp')
-rw-r--r-- | src/server/CompiledPatch.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 <vector> +#include <list> #include <boost/utility.hpp> @@ -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<NodeImpl*>* d) + CompiledNode(NodeImpl* n, size_t np, const std::list<NodeImpl*>& 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<NodeImpl*>::iterator i = d->begin(); i != d->end(); ++i) + _dependants.reserve(d.size()); + for (std::list<NodeImpl*>::const_iterator i = d.begin(); i != d.end(); ++i) _dependants.push_back(*i); } |