Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 288 of file qfuture_impl.h.
|
inline |
Definition at line 293 of file qfuture_impl.h.
|
virtualdefault |
|
static |
Definition at line 603 of file qfuture_impl.h.
References context, Q_ASSERT, and QtPrivate::watchContinuation().
|
static |
Definition at line 516 of file qfuture_impl.h.
References QtFuture::Async, QtFuture::Inherit, policy, pool, and Q_ASSERT.
|
static |
Definition at line 566 of file qfuture_impl.h.
bool QtPrivate::Continuation< Function, ResultType, ParentResultType >::execute | ( | ) |
Definition at line 464 of file qfuture_impl.h.
References Q_ASSERT.
|
protected |
Definition at line 418 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 329 of file qfuture_impl.h.
|
protected |
Definition at line 328 of file qfuture_impl.h.
|
protected |
Definition at line 327 of file qfuture_impl.h.