Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfutureinterface.cpp File Reference
#include "qfuture.h"
#include "qfutureinterface_p.h"
#include <QtCore/qatomic.h>
#include <QtCore/qthread.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/private/qsimd_p.h>
#include <private/qthreadpool_p.h>
+ Include dependency graph for qfutureinterface.cpp:

Go to the source code of this file.

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 25 of file qfutureinterface.cpp.

Function Documentation

◆ switch_from_to()

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

Definition at line 76 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 71 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 66 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: