diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-07-08 15:56:06 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-07-09 12:23:57 +0200 |
commit | 39d0041f15601cee499c959702b004cbd721bed9 (patch) | |
tree | 95140b88dee61bd78d171cb958ceca0cca978ad1 /src/core/jobs/qthreadpooler_p.h | |
parent | 93bd28e6d4ac8fdb6b07b30684e6b17ee515e44e (diff) |
Use QList instead of QVector in implementation and docs
Fix some const correctness.
Use list-initialization.
Task-number: QTBUG-84469
Change-Id: I9c56742581f48f89a3b02e4121fae414117c7a25
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/jobs/qthreadpooler_p.h')
-rw-r--r-- | src/core/jobs/qthreadpooler_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/jobs/qthreadpooler_p.h b/src/core/jobs/qthreadpooler_p.h index ea69b5b78..058da2fc9 100644 --- a/src/core/jobs/qthreadpooler_p.h +++ b/src/core/jobs/qthreadpooler_p.h @@ -72,7 +72,7 @@ public: explicit QThreadPooler(QObject *parent = nullptr); ~QThreadPooler(); - QFuture<void> mapDependables(QVector<RunnableInterface *> &taskQueue); + QFuture<void> mapDependables(QList<RunnableInterface *> &taskQueue); int waitForAllJobs(); void taskFinished(RunnableInterface *task); QFuture<void> future(); @@ -80,7 +80,7 @@ public: static int maxThreadCount(); private: - void enqueueTasks(const QVector<RunnableInterface *> &tasks); + void enqueueTasks(const QList<RunnableInterface *> &tasks); void skipTask(RunnableInterface *task); void enqueueDepencies(RunnableInterface *task); void acquire(int add); |