summaryrefslogtreecommitdiffstats
path: root/src/core/jobs/qthreadpooler_p.h
diff options
context:
space:
mode:
authorMika Salmela <mika.salmela@theqtcompany.com>2015-04-27 16:47:15 +0300
committerMika Salmela <mika.salmela@theqtcompany.com>2015-04-27 14:29:23 +0000
commit21c9dfef8bf81f7a1910d5d07baf9fdab39750a4 (patch)
tree655f4db942c9ccc040310b96a7c325b87af7bc80 /src/core/jobs/qthreadpooler_p.h
parent2e34ef2d053cfa0c152442a758dda6296902c7c8 (diff)
Add checks for double task execution
On ThreadPooler done tasks are also removed from the dependency pair list. Also added reserved flag for tasks. These prevent tasks getting into execution more than once. Change-Id: Ia9e5377c883ad08079a9af32c4a2a294db425eb2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/jobs/qthreadpooler_p.h')
-rw-r--r--src/core/jobs/qthreadpooler_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/jobs/qthreadpooler_p.h b/src/core/jobs/qthreadpooler_p.h
index 9abbdc8d0..4a0a189a6 100644
--- a/src/core/jobs/qthreadpooler_p.h
+++ b/src/core/jobs/qthreadpooler_p.h
@@ -58,7 +58,7 @@ public:
~QThreadPooler();
QFuture<void> mapDependables(QVector<RunnableInterface *> &taskQueue);
- void taskFinished(QVector<RunnableInterface *> tasks);
+ void taskFinished(RunnableInterface *task);
QFuture<void> future();
void setDependencyHandler(DependencyHandler *handler);