![]() |
Qt 6.x
The Qt SDK
|
#include <qfuture_impl.h>
Public Member Functions | |
template<typename F = Function> | |
Continuation (F &&func, const QFuture< ParentResultType > &f, QPromise< ResultType > &&p) | |
virtual | ~Continuation ()=default |
bool | execute () |
Static Public Member Functions | |
template<typename F = Function> | |
static void | create (F &&func, QFuture< ParentResultType > *f, QFutureInterface< ResultType > &fi, QtFuture::Launch policy) |
template<typename F = Function> | |
static void | create (F &&func, QFuture< ParentResultType > *f, QFutureInterface< ResultType > &fi, QThreadPool *pool) |
template<typename F = Function> | |
static void | create (F &&func, QFuture< ParentResultType > *f, QFutureInterface< ResultType > &fi, QObject *context) |
Protected Member Functions | |
virtual void | runImpl ()=0 |
void | runFunction () |
Protected Attributes | |
QPromise< ResultType > | promise |
QFuture< ParentResultType > | parentFuture |
Function | function |
Definition at line 290 of file qfuture_impl.h.
|
inline |
Definition at line 294 of file qfuture_impl.h.
|
virtualdefault |
|
static |
Definition at line 595 of file qfuture_impl.h.
References QObject::connect(), context, QObject::deleteLater(), QObject::destroyed(), QtPrivate::Continuation< Function, ResultType, ParentResultType >::execute(), fi, QtPrivate::QBasicFutureWatcher::finished(), parent, Q_ASSERT, and watcher.
|
static |
Definition at line 517 of file qfuture_impl.h.
References QtFuture::Async, QtPrivate::Continuation< Function, ResultType, ParentResultType >::execute(), fi, QFutureInterface< T >::future(), QtFuture::Inherit, parent, policy, pool, and Q_ASSERT.
|
static |
Definition at line 567 of file qfuture_impl.h.
References fi, QFutureInterface< T >::future(), parent, pool, and Q_ASSERT.
bool QtPrivate::Continuation< Function, ResultType, ParentResultType >::execute |
Definition at line 465 of file qfuture_impl.h.
References Q_ASSERT.
Referenced by QtPrivate::Continuation< Function, ResultType, ParentResultType >::create(), and QtPrivate::Continuation< Function, ResultType, ParentResultType >::create().
|
protected |
Definition at line 419 of file qfuture_impl.h.
References QtPrivate::fulfillPromise(), function, and Q_ASSERT.
Referenced by QtPrivate::AsyncContinuation< Function, ResultType, ParentResultType >::run(), and QtPrivate::SyncContinuation< Function, ResultType, ParentResultType >::runImpl().
|
protectedpure virtual |
|
protected |
Definition at line 330 of file qfuture_impl.h.
|
protected |
Definition at line 329 of file qfuture_impl.h.
|
protected |
Definition at line 328 of file qfuture_impl.h.