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
QtPrivate::WhenAnyContext< ResultType > Struct Template Reference

#include <qfuture_impl.h>

+ Collaboration diagram for QtPrivate::WhenAnyContext< ResultType >:

Public Types

using ValueType = ResultType
 

Public Member Functions

template<typename T = ResultType, typename = EnableForNonVoid<T>>
void checkForCompletion (qsizetype, T &&result)
 

Public Attributes

QAtomicInt ready = false
 
QPromise< ResultType > promise
 

Detailed Description

template<typename ResultType>
struct QtPrivate::WhenAnyContext< ResultType >

Definition at line 1082 of file qfuture_impl.h.

Member Typedef Documentation

◆ ValueType

template<typename ResultType >
using QtPrivate::WhenAnyContext< ResultType >::ValueType = ResultType

Definition at line 1084 of file qfuture_impl.h.

Member Function Documentation

◆ checkForCompletion()

template<typename ResultType >
template<typename T = ResultType, typename = EnableForNonVoid<T>>
void QtPrivate::WhenAnyContext< ResultType >::checkForCompletion ( qsizetype ,
T && result )
inline

Definition at line 1087 of file qfuture_impl.h.

References QPromise< T >::addResult(), QBasicAtomicInteger< T >::fetchAndStoreRelaxed(), QPromise< T >::finish(), QtPrivate::WhenAnyContext< ResultType >::promise, and QtPrivate::WhenAnyContext< ResultType >::ready.

+ Here is the call graph for this function:

Member Data Documentation

◆ promise

template<typename ResultType >
QPromise<ResultType> QtPrivate::WhenAnyContext< ResultType >::promise

◆ ready

template<typename ResultType >
QAtomicInt QtPrivate::WhenAnyContext< ResultType >::ready = false

The documentation for this struct was generated from the following file: