summaryrefslogtreecommitdiffstats
path: root/src/server/CompiledGraph.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-03-29 10:56:18 +0200
committerDavid Robillard <d@drobilla.net>2018-03-29 10:56:18 +0200
commit7a5e694c3ffed12532ee2b97f99c4b56dbba4d02 (patch)
tree483f736f406a40093f1f65444d76f12b89caaf7e /src/server/CompiledGraph.cpp
parentc9863ba79edbac7ae78ad0e374a2988c816ad31a (diff)
downloadingen-7a5e694c3ffed12532ee2b97f99c4b56dbba4d02.tar.gz
ingen-7a5e694c3ffed12532ee2b97f99c4b56dbba4d02.tar.bz2
ingen-7a5e694c3ffed12532ee2b97f99c4b56dbba4d02.zip
WIP: more variant task
Diffstat (limited to 'src/server/CompiledGraph.cpp')
-rw-r--r--src/server/CompiledGraph.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp
index fbc7ab26..12867d2c 100644
--- a/src/server/CompiledGraph.cpp
+++ b/src/server/CompiledGraph.cpp
@@ -153,7 +153,7 @@ compile_block(BlockImpl* n, ParTask& task, BlockSet& k)
}
CompiledGraph::CompiledGraph(GraphImpl& graph)
- : _master(std::unique_ptr<Task>(new Task(SeqTask())))
+ : _master(SeqTask())
{
ThreadManager::assert_thread(THREAD_PRE_PROCESS);
@@ -179,7 +179,7 @@ CompiledGraph::CompiledGraph(GraphImpl& graph)
compile_block(b, par, predecessors);
}
- boost::get<SeqTask>(_master.get())->emplace_front(std::move(par));
+ boost::get<SeqTask>(_master).emplace_front(std::move(par));
blocks = std::move(predecessors);
}
@@ -195,7 +195,7 @@ MPtr<CompiledGraph> compile(Raul::Maid& maid, GraphImpl& graph)
Log& log = graph.engine().log();
auto sink = [&log](const std::string& s) { log.trace(s); };
sink(graph.path() + " =>\n ");
- //result->master().dump(sink, 2, true);
+ dump(result->master(), sink, 2, true);
sink("\n");
}