CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 友元 | 所有成员列表
moodycamel::ConsumerToken结构体 参考

#include <ConcurrentQueue.h>

+ moodycamel::ConsumerToken 的协作图:

Public 成员函数

template<typename T , typename Traits >
 ConsumerToken (BlockingConcurrentQueue< T, Traits > &q)
 
template<typename T , typename Traits >
 ConsumerToken (ConcurrentQueue< T, Traits > &q)
 
 ConsumerToken (ConsumerToken &&other) MOODYCAMEL_NOEXCEPT
 
 ConsumerToken (ConsumerToken const &) MOODYCAMEL_DELETE_FUNCTION
 
ConsumerTokenoperator= (ConsumerToken &&other) MOODYCAMEL_NOEXCEPT
 
ConsumerTokenoperator= (ConsumerToken const &) MOODYCAMEL_DELETE_FUNCTION
 
void swap (ConsumerToken &other) MOODYCAMEL_NOEXCEPT
 

Private 属性

details::ConcurrentQueueProducerTypelessBasecurrentProducer
 
details::ConcurrentQueueProducerTypelessBasedesiredProducer
 
std::uint32_t initialOffset
 
std::uint32_t itemsConsumedFromCurrent
 
std::uint32_t lastKnownGlobalOffset
 

友元

template<typename T , typename Traits >
class ConcurrentQueue
 
class ConcurrentQueueTests
 

详细描述

在文件 ConcurrentQueue.h644 行定义.

构造及析构函数说明

◆ ConsumerToken() [1/4]

template<typename T , typename Traits >
moodycamel::ConsumerToken::ConsumerToken ( ConcurrentQueue< T, Traits > & q)
explicit

◆ ConsumerToken() [2/4]

template<typename T , typename Traits >
moodycamel::ConsumerToken::ConsumerToken ( BlockingConcurrentQueue< T, Traits > & q)
explicit

在文件 ConcurrentQueue.h3614 行定义.

引用了 initialOffset , 以及 lastKnownGlobalOffset.

◆ ConsumerToken() [3/4]

moodycamel::ConsumerToken::ConsumerToken ( ConsumerToken && other)
inline

在文件 ConcurrentQueue.h652 行定义.

◆ ConsumerToken() [4/4]

moodycamel::ConsumerToken::ConsumerToken ( ConsumerToken const & )

成员函数说明

◆ operator=() [1/2]

ConsumerToken & moodycamel::ConsumerToken::operator= ( ConsumerToken && other)
inline

在文件 ConcurrentQueue.h657 行定义.

引用了 swap().

+ 函数调用图:

◆ operator=() [2/2]

ConsumerToken & moodycamel::ConsumerToken::operator= ( ConsumerToken const & )

◆ swap()

void moodycamel::ConsumerToken::swap ( ConsumerToken & other)
inline

在文件 ConcurrentQueue.h663 行定义.

引用了 currentProducer, desiredProducer, initialOffset, itemsConsumedFromCurrent , 以及 lastKnownGlobalOffset.

被这些函数引用 operator=().

+ 这是这个函数的调用关系图:

友元及相关函数文档

◆ ConcurrentQueue

template<typename T , typename Traits >
friend class ConcurrentQueue
friend

在文件 ConcurrentQueue.h677 行定义.

◆ ConcurrentQueueTests

friend class ConcurrentQueueTests
friend

在文件 ConcurrentQueue.h678 行定义.

类成员变量说明

◆ currentProducer

details::ConcurrentQueueProducerTypelessBase* moodycamel::ConsumerToken::currentProducer
private

◆ desiredProducer

details::ConcurrentQueueProducerTypelessBase* moodycamel::ConsumerToken::desiredProducer
private

◆ initialOffset

std::uint32_t moodycamel::ConsumerToken::initialOffset
private

◆ itemsConsumedFromCurrent

std::uint32_t moodycamel::ConsumerToken::itemsConsumedFromCurrent
private

◆ lastKnownGlobalOffset

std::uint32_t moodycamel::ConsumerToken::lastKnownGlobalOffset
private

该结构体的文档由以下文件生成: