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
qfutureinterface.cpp File Reference

(c88a1b3f37a9447961936bae4a8af1377417c64a)

#include "qfuture.h"
#include "qfutureinterface_p.h"
#include <QtCore/qatomic.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qthread.h>
#include <QtCore/qvarlengtharray.h>
#include <private/qthreadpool_p.h>
#include <private/qobject_p.h>
#include "qfutureinterface.moc"
+ Include dependency graph for qfutureinterface.cpp:

Go to the source code of this file.

Classes

class  QObjectContinuationWrapper
 

Namespaces

namespace  QtFuture
 

Enumerations

enum  { MaxProgressEmitsPerSecond = 25 }
 

Functions

static int switch_on (QAtomicInt &a, int which)
 
static int switch_off (QAtomicInt &a, int which)
 
static int switch_from_to (QAtomicInt &a, int from, int to)
 
Q_CORE_EXPORT QFuture< voidQtFuture::makeReadyVoidFuture ()
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MaxProgressEmitsPerSecond 

Definition at line 22 of file qfutureinterface.cpp.

Function Documentation

◆ switch_from_to()

static int switch_from_to ( QAtomicInt & a,
int from,
int to )
inlinestatic

Definition at line 131 of file qfutureinterface.cpp.

References qYieldCpu().

Referenced by QFutureInterfaceBase::cancel(), QFutureInterfaceBase::reportFinished(), QFutureInterfaceBase::reportSuspended(), and QFutureInterfaceBase::suspendIfRequested().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ switch_off()

static int switch_off ( QAtomicInt & a,
int which )
inlinestatic

Definition at line 126 of file qfutureinterface.cpp.

Referenced by QFutureInterfaceBasePrivate::internal_setThrottled(), QFutureInterfaceBase::setSuspended(), QFutureInterfaceBase::setThrottled(), and QFutureInterfaceBase::toggleSuspended().

+ Here is the caller graph for this function:

◆ switch_on()

static int switch_on ( QAtomicInt & a,
int which )
inlinestatic

Definition at line 121 of file qfutureinterface.cpp.

Referenced by QFutureInterfaceBasePrivate::internal_setThrottled(), QFutureInterfaceBase::reportException(), QFutureInterfaceBase::setSuspended(), QFutureInterfaceBase::setThrottled(), and QFutureInterfaceBase::toggleSuspended().

+ Here is the caller graph for this function: