![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Functions | |
QString | s ("Hello, ") |
[1] | |
std::is_invocable_v< std::decay_t< Task >, std::decay_t< Args >... > QVariant | value (42) |
[3] | |
QString | result ("Hello, world!") |
[5] | |
QtConcurrent::task QString::chop withArguments result | spawn () .waitForFinished() |
QtConcurrent::task([]{ qDebug("Hello, world!");}).spawn(FutureResult void | increment (QPromise< int > &promise, int i) |
[10] | |
Variables | |
auto | task = [](const QString &s){ qDebug() << ("Hello, " + s); } |
[0] | |
QtConcurrent::task([](QString &s){ s.append("world!");}) .withArguments(std auto | future = QtConcurrent::task([]{ return 42; }).spawn() |
[2] | |
auto | result = future.result() |
[6] | |
CallableWithState | object |
QThreadPool | pool |
[8] | |
QtConcurrent::task([]{ qDebug("Hello, world!");}).spawn(FutureResult void increment | ( | QPromise< int > & | promise, |
int | i | ||
) |
[10]
[11] [11] [12]
Definition at line 87 of file src_concurrent_qtconcurrenttask.cpp.
References QPromise< T >::addResult(), and i.
Referenced by QCborContainerPrivate::addByteData(), QVLABase< T >::append_impl(), QMenuBarPrivate::getNextAction(), QVLABase< T >::growBy(), main(), QXcbClipboardTransaction::updateIncrementalProperty(), GLSL::Semantic::visit(), and QPlatformWindow::windowSizeIncrement().
QtConcurrent::task QString::chop withArguments result spawn | ( | ) |
[3]
[4] [4] [5]
QtConcurrent::task ([](QString &s){ s.append("world!"); }) .withArguments(std auto future = QtConcurrent::task([]{ return 42; }).spawn() |
CallableWithState object |
Definition at line 65 of file src_concurrent_qtconcurrenttask.cpp.
QThreadPool pool |
int result = future.result() |
[0]
[1]
Definition at line 9 of file src_concurrent_qtconcurrenttask.cpp.
Referenced by QQmlTableInstanceModel::setRequiredProperty(), and QThreadPoolPrivate::tryStart().