![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qfuture_impl.h>
Public Types | |
using | Storage = CompactStorage<Function> |
Public Member Functions | |
template<typename F = Function> | |
CompactContinuation (F &&func, const QFuture< ParentResultType > &f, QPromise< ResultType > &&p) | |
template<typename F = Function> | |
CompactContinuation (F &&func, const QFuture< ParentResultType > &f, QPromise< ResultType > &&p, QThreadPool *pool) | |
~CompactContinuation () | |
bool | execute () |
QRunnable * | runnable () const |
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 Types | |
enum class | Type : quint8 { Sync , Async } |
Protected Member Functions | |
void | runImpl () |
void | runFunction () |
Protected Attributes | |
QPromise< ResultType > | promise |
QFuture< ParentResultType > | parentFuture |
QThreadPool * | threadPool = nullptr |
QRunnable * | runObj = nullptr |
const Type | type |
Definition at line 290 of file qfuture_impl.h.
using QtPrivate::CompactContinuation< Function, ResultType, ParentResultType >::Storage = CompactStorage<Function> |
Definition at line 294 of file qfuture_impl.h.
|
strongprotected |
Enumerator | |
---|---|
Sync | |
Async |
Definition at line 356 of file qfuture_impl.h.
|
inline |
Definition at line 297 of file qfuture_impl.h.
References CompactContinuation().
Referenced by CompactContinuation().
|
inline |
Definition at line 303 of file qfuture_impl.h.
References CompactContinuation().
Referenced by CompactContinuation().
|
inline |
Definition at line 315 of file qfuture_impl.h.
|
static |
Definition at line 588 of file qfuture_impl.h.
References execute().
|
static |
Definition at line 508 of file qfuture_impl.h.
References QFutureInterface< T >::~QFutureInterface(), QtFuture::Async, execute(), and QtFuture::Inherit.
|
static |
Definition at line 559 of file qfuture_impl.h.
References QFutureInterface< T >::~QFutureInterface().
bool QtPrivate::CompactContinuation< Function, ResultType, ParentResultType >::execute | ( | ) |
|
protected |
Definition at line 405 of file qfuture_impl.h.
References promise.
Referenced by runImpl().
|
inlineprotected |
Definition at line 342 of file qfuture_impl.h.
References runFunction(), and type.
Referenced by execute().
|
inline |
Definition at line 319 of file qfuture_impl.h.
|
protected |
Definition at line 362 of file qfuture_impl.h.
|
protected |
Definition at line 361 of file qfuture_impl.h.
Referenced by execute(), and runFunction().
|
protected |
Definition at line 364 of file qfuture_impl.h.
|
protected |
Definition at line 363 of file qfuture_impl.h.
|
protected |
Definition at line 365 of file qfuture_impl.h.
Referenced by runImpl().