![]() |
Qt 6.x
The Qt SDK
|
#include <qtconcurrentstoredfunctioncall.h>
Public Member Functions | |
StoredFunctionCall (DecayedTuple< Function, Args... > &&_data) | |
![]() | |
QFuture< InvokeResultType< Function, Args... > > | start () |
QFuture< InvokeResultType< Function, Args... > > | start (const TaskStartParameters ¶meters) |
QFuture< InvokeResultType< Function, Args... > > | start (QThreadPool *pool) |
void | run () override |
Implement this pure virtual function in your subclass. | |
![]() | |
virtual void | run ()=0 |
Implement this pure virtual function in your subclass. | |
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. | |
template<typename Callable , if_callable< Callable > = true> | |
QGenericRunnable (Callable &&c) | |
~QGenericRunnable () override | |
void | run () override |
Protected Member Functions | |
void | runFunctor () override |
virtual void | runFunctor ()=0 |
Additional Inherited Members | |
![]() | |
template<typename Callable > | |
using | if_callable = std::enable_if_t< std::is_invocable_r_v< void, Callable >, bool > |
![]() | |
template<typename Callable , if_callable< Callable > = true> | |
static QRunnable * | create (Callable &&functionToRun) |
static QRunnable * | create (std::nullptr_t)=delete |
![]() | |
QFutureInterface< InvokeResultType< Function, Args... > > | promise |
Definition at line 105 of file qtconcurrentstoredfunctioncall.h.
|
inline |
Definition at line 107 of file qtconcurrentstoredfunctioncall.h.
|
inlineoverrideprotectedvirtual |
Implements QtConcurrent::RunFunctionTaskBase< InvokeResultType< Function, Args... > >.
Definition at line 112 of file qtconcurrentstoredfunctioncall.h.
References args, function, QtConcurrent::RunFunctionTaskBase< InvokeResultType< Function, Args... > >::promise, QFutureInterface< T >::reportAndMoveResult(), and QFutureInterface< T >::reportResult().