4#ifndef QTCONCURRENT_RUN_H
5#define QTCONCURRENT_RUN_H
8#pragma qt_class(QtConcurrentRun)
11#include <QtConcurrent/qtconcurrentcompilertest.h>
13#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
15#include <QtConcurrent/qtconcurrentrunbase.h>
16#include <QtConcurrent/qtconcurrentstoredfunctioncall.h>
38template <
class Function,
class ...Args>
43 std::forward<Args>(
args)... };
48template <
class Function,
class ...Args>
53 return run(
pool, std::forward<const Function>(functionWrapper.get()),
54 std::forward<Args>(
args)...);
57template <
class Function,
class ...Args>
62 std::forward<Args>(
args)...);
66template <
class PromiseType,
class Function,
class ...Args>
71 std::forward<Function>(
f), std::forward<Args>(
args)...))->start(
pool);
75template <
class PromiseType,
class Function,
class ...Args>
80 std::forward<Args>(
args)...);
static QThreadPool * globalInstance()
Returns the global QThreadPool instance.
Combined button and popup list for selecting options.
std::tuple< std::decay_t< Types >... > DecayedTuple
auto run(QThreadPool *pool, Function &&f, Args &&...args)