summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-03-15 00:00:27 -0400
committerDavid Robillard <d@drobilla.net>2018-03-15 00:00:27 -0400
commit0c8c78a324433431769cd8d4292c83f2fa55fbb1 (patch)
tree35012d4791a574d9d4d738d7f9f80eb8a3214b49 /src/server
parentfbd0184b77f4bcd7ec22642b5f75f2188b870f72 (diff)
downloadingen-0c8c78a324433431769cd8d4292c83f2fa55fbb1.tar.gz
ingen-0c8c78a324433431769cd8d4292c83f2fa55fbb1.tar.bz2
ingen-0c8c78a324433431769cd8d4292c83f2fa55fbb1.zip
Use BlockSet type alias
Diffstat (limited to 'src/server')
-rw-r--r--src/server/CompiledGraph.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp
index 449e7aa0..71cf0831 100644
--- a/src/server/CompiledGraph.cpp
+++ b/src/server/CompiledGraph.cpp
@@ -83,7 +83,7 @@ CompiledGraph::compile_graph(GraphImpl* graph)
ThreadManager::assert_thread(THREAD_PRE_PROCESS);
// Start with sink nodes (no outputs, or connected only to graph outputs)
- std::set<BlockImpl*> blocks;
+ BlockSet blocks;
for (auto& b : graph->blocks()) {
// Mark all blocks as unvisited initially
b.set_mark(BlockImpl::Mark::UNVISITED);
@@ -96,7 +96,7 @@ CompiledGraph::compile_graph(GraphImpl* graph)
// Keep compiling working set until all nodes are visited
while (!blocks.empty()) {
- std::set<BlockImpl*> predecessors;
+ BlockSet predecessors;
Task par(Task::Mode::PARALLEL);
for (auto b : blocks) {
@@ -142,10 +142,10 @@ check_feedback(const BlockImpl* root, BlockImpl* provider)
}
void
-CompiledGraph::compile_provider(const BlockImpl* root,
- BlockImpl* block,
- Task& task,
- std::set<BlockImpl*>& k)
+CompiledGraph::compile_provider(const BlockImpl* root,
+ BlockImpl* block,
+ Task& task,
+ BlockSet& k)
{
if (block->dependants().size() > 1) {
/* Provider has other dependants, so this is the tail of a sequential task.
@@ -169,9 +169,7 @@ CompiledGraph::compile_provider(const BlockImpl* root,
}
void
-CompiledGraph::compile_block(BlockImpl* n,
- Task& task,
- std::set<BlockImpl*>& k)
+CompiledGraph::compile_block(BlockImpl* n, Task& task, BlockSet& k)
{
switch (n->get_mark()) {
case BlockImpl::Mark::UNVISITED: