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>.
Loading...
Searching...
No Matches
src_concurrent_qtconcurrenttask.cpp File Reference

(dcf76042301772b770a088526e5753ed41232d87)

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::taskfuture [](QString &s){ s.append("world!");}) .withArguments(std auto = QtConcurrent::task([]{ return 42; }).spawn()
 [2]
 
auto result = future.result()
 [6]
 
CallableWithState object
 
QThreadPool pool
 [8]
 

Function Documentation

◆ increment()

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 i.

Referenced by QCborContainerPrivate::addByteDataImpl(), QVLABase< T >::append_impl(), QMenuBarPrivate::getNextAction(), QVLABase< T >::growBy(), main(), QXcbClipboardTransaction::updateIncrementalProperty(), GLSL::Semantic::visit(), and QPlatformWindow::windowSizeIncrement().

+ Here is the caller graph for this function:

◆ result()

QString result ( " Hello,
world!"  )

[5]

[6]

◆ s()

QString s ( " Hello,
"  )

[1]

[2]

◆ spawn()

QtConcurrent::task QString::chop withArguments result spawn ( )

References newState(), and state.

+ Here is the call graph for this function:

◆ value()

std::is_invocable_v< std::decay_t< Task >, std::decay_t< Args >... > QVariant value ( 42 )

[3]

[4] [4] [5]

Variable Documentation

◆ future

QtConcurrent::task ( future[](QString &s){ s.append("world!"); }) .withArguments(std auto = QtConcurrent::task([]{ return 42; }).spawn()

[2]

[3]

Definition at line 23 of file src_concurrent_qtconcurrenttask.cpp.

◆ object

CallableWithState object

Definition at line 65 of file src_concurrent_qtconcurrenttask.cpp.

◆ pool

[8]

[9]

Definition at line 74 of file src_concurrent_qtconcurrenttask.cpp.

◆ result

int result = future.result()

[6]

[7]

Definition at line 24 of file src_concurrent_qtconcurrenttask.cpp.

◆ task