![]() |
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 294 of file qfuture_impl.h.
| using QtPrivate::CompactContinuation< Function, ResultType, ParentResultType >::Storage = CompactStorage<Function> |
Definition at line 298 of file qfuture_impl.h.
|
strongprotected |
| Enumerator | |
|---|---|
| Sync | |
| Async | |
Definition at line 360 of file qfuture_impl.h.
|
inline |
Definition at line 301 of file qfuture_impl.h.
References CompactContinuation().
Referenced by CompactContinuation().
|
inline |
Definition at line 307 of file qfuture_impl.h.
References CompactContinuation().
Referenced by CompactContinuation().
|
inline |
Definition at line 319 of file qfuture_impl.h.
|
static |
Definition at line 592 of file qfuture_impl.h.
References execute().
|
static |
Definition at line 512 of file qfuture_impl.h.
References QtFuture::Async, execute(), and QtFuture::Inherit.
|
static |
Definition at line 563 of file qfuture_impl.h.
| bool QtPrivate::CompactContinuation< Function, ResultType, ParentResultType >::execute | ( | ) |
|
protected |
Definition at line 409 of file qfuture_impl.h.
References promise.
Referenced by runImpl().
|
inlineprotected |
Definition at line 346 of file qfuture_impl.h.
References runFunction(), and type.
Referenced by execute().
|
inline |
Definition at line 323 of file qfuture_impl.h.
|
protected |
Definition at line 366 of file qfuture_impl.h.
|
protected |
Definition at line 365 of file qfuture_impl.h.
Referenced by execute(), and runFunction().
|
protected |
Definition at line 368 of file qfuture_impl.h.
|
protected |
Definition at line 367 of file qfuture_impl.h.
|
protected |
Definition at line 369 of file qfuture_impl.h.
Referenced by runImpl().