summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-12 22:37:22 +0800
committerDavid Robillard <d@drobilla.net>2016-10-01 12:25:43 -0400
commitfed7aaf0901e1b26dcc2bbb222f67b11f6b9d291 (patch)
tree8ae07a75439481109da586b211c4da85fca8730b /tests
parent11b55676a510171a56975743fd752ccbcc170622 (diff)
downloadingen-fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291.tar.gz
ingen-fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291.tar.bz2
ingen-fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291.zip
Add parallel graph execution
Diffstat (limited to 'tests')
-rw-r--r--tests/ingen_test.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index 12e9e9f9..6633e5c5 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -135,10 +135,16 @@ ingen_try(bool cond, const char* msg)
static void
flush_events(Ingen::World* world)
{
+ static const uint32_t block_length = 4096;
+ int count = 0;
+ uint32_t offset = 0;
while (world->engine()->pending_events()) {
- world->engine()->run(4096);
+ world->engine()->locate(offset, block_length);
+ world->engine()->run(block_length);
world->engine()->main_iteration();
g_usleep(1000);
+ ++count;
+ offset += block_length;
}
}