summaryrefslogtreecommitdiffstats
path: root/src/server/events/CreateBlock.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-23 14:24:07 -0500
committerDavid Robillard <d@drobilla.net>2016-10-01 07:03:17 -0400
commit11b55676a510171a56975743fd752ccbcc170622 (patch)
treeb36fce044d67e2c8f358170f207f2ec0926cb8a2 /src/server/events/CreateBlock.cpp
parent92d75b64d9f4cf9ca9caf3e1a0d3ad9819eb5481 (diff)
downloadingen-11b55676a510171a56975743fd752ccbcc170622.tar.gz
ingen-11b55676a510171a56975743fd752ccbcc170622.tar.bz2
ingen-11b55676a510171a56975743fd752ccbcc170622.zip
Add parallelism-aware graph traversal
Diffstat (limited to 'src/server/events/CreateBlock.cpp')
-rw-r--r--src/server/events/CreateBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/events/CreateBlock.cpp b/src/server/events/CreateBlock.cpp
index 28afe4b2..d1060fa4 100644
--- a/src/server/events/CreateBlock.cpp
+++ b/src/server/events/CreateBlock.cpp
@@ -138,7 +138,7 @@ CreateBlock::pre_process()
TODO: Since the block is not connected at this point, a full compilation
could be avoided and the block simply appended. */
if (_graph->enabled()) {
- _compiled_graph = _graph->compile();
+ _compiled_graph = CompiledGraph::compile(_graph);
}
_update.put_block(_block);
@@ -149,7 +149,7 @@ CreateBlock::pre_process()
void
CreateBlock::execute(RunContext& context)
{
- if (_block) {
+ if (_status == Status::SUCCESS) {
_graph->set_compiled_graph(_compiled_graph);
_compiled_graph = NULL; // Graph takes ownership
}