From 2f12e845d71d7189bfaa08a94f23b73f09685f91 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 25 Mar 2014 14:06:32 -0400 Subject: [PATCH] finer grain concurrency for _projectPartial --- openbr/plugins/meta.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openbr/plugins/meta.cpp b/openbr/plugins/meta.cpp index c713c98..ebc4fcd 100644 --- a/openbr/plugins/meta.cpp +++ b/openbr/plugins/meta.cpp @@ -76,7 +76,7 @@ class PipeTransform : public CompositeTransform { Q_OBJECT - void _projectPartial(TemplateList *srcdst, int startIndex, int stopIndex) + void _projectPartial(Template *srcdst, int startIndex, int stopIndex) { for (int i=startIndex; i> *transforms[i]; @@ -124,8 +124,9 @@ class PipeTransform : public CompositeTransform fprintf(stderr, " projecting..."); QFutureSynchronizer futures; - for (int j=0; j < dataLines.size(); j++) - futures.addFuture(QtConcurrent::run(this, &PipeTransform::_projectPartial, &dataLines[j], i, nextTrainableTransform)); + for (int j=0; j