QtBase  v6.3.1
Classes | Functions | Variables
src_concurrent_qtconcurrentrun.cpp File Reference

Go to the source code of this file.

Classes

struct  TestClass
 [7] More...
 
struct  Functor
 [13] More...
 

Functions

void aFunction ()
 [0] More...
 
void aFunctionWithArguments (int arg1, double arg2, const QString &string)
 [explicit-pool-0] More...
 
QString functionReturningAString ()
 [1] More...
 
QString someFunction (const QByteArray &input)
 [2] More...
 
future waitForFinished ()
 
QtConcurrent::runaddOne (n)).waitForFinished(
 
void aFunction (QPromise< void > &promise)
 [8] More...
 
void aFunction (QPromise< void > &promise, int arg1, const QString &arg2)
 [9] More...
 
void helloWorldFunction (QPromise< QString > &promise)
 [10] More...
 
void aFunction (QPromise< int > &promise)
 [11] More...
 
future suspend ()
 
future resume ()
 
future cancel ()
 
QObject::connect &[] watcher (int progress){ ... ;qDebug()<< "current progress:"<< progress;}
 
watcher setFuture (QtConcurrent::run(aFunction))
 
 run< double > (f)
 
void foo (int arg)
 [14] More...
 
void foo (int arg1, int arg2)
 

Variables

QFuture< voidfuture = QtConcurrent::run(aFunction)
 [5] More...
 
QThreadPool pool
 
int integer = ...
 
double floatingPoint = ...
 
QString string = ...
 
QString result = future.result()
 
QByteArray bytearray = ...
 [3] More...
 
QImage image = ...
 [4] More...
 
int n = 42
 
TestClass o
 
QList< QStringresults = future.results()
 
QFutureWatcher< int > watcher
 
Functor f
 

Function Documentation

◆ addOne()

QtConcurrent::run& addOne ( n  )

◆ aFunction() [1/4]

void aFunction ( )

[0]

[explicit-pool-0]

◆ aFunction() [2/4]

void aFunction ( QPromise< int > &  promise)

[11]

[12]

[13]

Definition at line 175 of file src_concurrent_qtconcurrentrun.cpp.

Here is the call graph for this function:

◆ aFunction() [3/4]

void aFunction ( QPromise< void > &  promise)

[8]

[9]

◆ aFunction() [4/4]

void aFunction ( QPromise< void > &  promise,
int  arg1,
const QString arg2 
)

[9]

[10]

◆ aFunctionWithArguments()

void aFunctionWithArguments ( int  arg1,
double  arg2,
const QString string 
)

[explicit-pool-0]

[1]

◆ cancel()

future cancel ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ foo() [1/2]

void foo ( int  arg)

[14]

[15]

◆ foo() [2/2]

void foo ( int  arg1,
int  arg2 
)

◆ functionReturningAString()

QString functionReturningAString ( )

[1]

[2]

◆ helloWorldFunction()

void helloWorldFunction ( QPromise< QString > &  promise)

[10]

[11]

Definition at line 163 of file src_concurrent_qtconcurrentrun.cpp.

Here is the call graph for this function:

◆ resume()

future resume ( )

◆ run< double >()

run< double > ( f  )

◆ setFuture()

◆ someFunction()

QString someFunction ( const QByteArray input)

[2]

[3]

◆ suspend()

future suspend ( )
Here is the caller graph for this function:

◆ waitForFinished()

QtConcurrent::run o waitForFinished ( )
Here is the caller graph for this function:

◆ watcher()

QObject::connect&[] watcher ( int  progress)

Variable Documentation

◆ bytearray

QByteArray bytearray = ...

[3]

[4]

Definition at line 86 of file src_concurrent_qtconcurrentrun.cpp.

◆ f

Definition at line 228 of file src_concurrent_qtconcurrentrun.cpp.

◆ floatingPoint

double floatingPoint = ...

Definition at line 68 of file src_concurrent_qtconcurrentrun.cpp.

◆ future

[5]

[15]

[6]

[16]

[17]

[18]

Definition at line 53 of file src_concurrent_qtconcurrentrun.cpp.

◆ image

QImage image = ...

[4]

[5]

Definition at line 103 of file src_concurrent_qtconcurrentrun.cpp.

◆ integer

int integer = ...

Definition at line 67 of file src_concurrent_qtconcurrentrun.cpp.

◆ n

int n = 42

Definition at line 120 of file src_concurrent_qtconcurrentrun.cpp.

◆ o

Definition at line 133 of file src_concurrent_qtconcurrentrun.cpp.

◆ pool

Definition at line 59 of file src_concurrent_qtconcurrentrun.cpp.

◆ result

QList<QByteArray> result = future.result()

Definition at line 79 of file src_concurrent_qtconcurrentrun.cpp.

◆ results

QList<QString> results = future.results()

Definition at line 171 of file src_concurrent_qtconcurrentrun.cpp.

◆ string

QString string = ...

Definition at line 69 of file src_concurrent_qtconcurrentrun.cpp.

◆ watcher

connect & watcher

Definition at line 214 of file src_concurrent_qtconcurrentrun.cpp.