![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtconcurrentrunbase.h>
Public Member Functions | |
| QFuture< T > | start () |
| QFuture< T > | start (const TaskStartParameters ¶meters) |
| QFuture< T > | start (QThreadPool *pool) |
| void | run () override |
| Implement this pure virtual function in your subclass. | |
| Public Member Functions inherited from QRunnable | |
| constexpr | QRunnable () noexcept=default |
| Constructs a QRunnable. | |
| virtual | ~QRunnable () |
| QRunnable virtual destructor. | |
| bool | autoDelete () const |
Returns true is auto-deletion is enabled; false otherwise. | |
| void | setAutoDelete (bool autoDelete) |
| Enables auto-deletion if autoDelete is true; otherwise auto-deletion is disabled. | |
Protected Member Functions | |
| virtual void | runFunctor ()=0 |
Protected Attributes | |
| QFutureInterface< T > | promise |
Additional Inherited Members | |
| Public Types inherited from QRunnable | |
| template<typename Callable> | |
| using | if_callable = std::enable_if_t<std::is_invocable_r_v<void, Callable>, bool> |
| Static Public Member Functions inherited from QRunnable | |
| template<typename Callable, if_callable< Callable > = true> | |
| static QRunnable * | create (Callable &&functionToRun) |
| static QRunnable * | create (std::nullptr_t)=delete |
Definition at line 47 of file qtconcurrentrunbase.h.
|
inlineoverridevirtual |
Implement this pure virtual function in your subclass.
Implements QRunnable.
Definition at line 75 of file qtconcurrentrunbase.h.
References runFunctor().
|
protectedpure virtual |
Implemented in QtConcurrent::StoredFunctionCall< Function, Args >, and QtConcurrent::StoredFunctionCallWithPromise< Function, PromiseType, Args >.
Referenced by run().
|
inline |
Definition at line 50 of file qtconcurrentrunbase.h.
|
inline |
Definition at line 55 of file qtconcurrentrunbase.h.
References QtConcurrent::TaskStartParameters::priority.
|
inline |
Definition at line 73 of file qtconcurrentrunbase.h.
|
protected |
Definition at line 98 of file qtconcurrentrunbase.h.