CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Private 属性 | 所有成员列表
moodycamel::ConcurrentQueue< T, Traits >::Block结构体 参考
+ moodycamel::ConcurrentQueue< T, Traits >::Block 的协作图:

Public 成员函数

 Block ()
 
template<InnerQueueContext context>
bool is_empty () const
 
T const * operator[] (index_t idx) const MOODYCAMEL_NOEXCEPT
 
T * operator[] (index_t idx) MOODYCAMEL_NOEXCEPT
 
template<InnerQueueContext context>
void reset_empty ()
 
template<InnerQueueContext context>
void set_all_empty ()
 
template<InnerQueueContext context>
bool set_empty (index_t i)
 
template<InnerQueueContext context>
bool set_many_empty (index_t i, size_t count)
 

Public 属性

bool dynamicallyAllocated
 
std::atomic< size_telementsCompletelyDequeued
 
std::atomic< bool > emptyFlags [BLOCK_SIZE<=EXPLICIT_BLOCK_EMPTY_COUNTER_THRESHOLD ? BLOCK_SIZE :1]
 
std::atomic< Block * > freeListNext
 
std::atomic< std::uint32_t > freeListRefs
 
Blocknext
 
std::atomic< bool > shouldBeOnFreeList
 

Private 属性

union { 
 
   details::max_align_t   dummy 
 
   char   elements [sizeof(T) *BLOCK_SIZE
 
};  
 

详细描述

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
struct moodycamel::ConcurrentQueue< T, Traits >::Block

在文件 ConcurrentQueue.h1487 行定义.

构造及析构函数说明

◆ Block()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
moodycamel::ConcurrentQueue< T, Traits >::Block::Block ( )
inline

在文件 ConcurrentQueue.h1489 行定义.

成员函数说明

◆ is_empty()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<InnerQueueContext context>
bool moodycamel::ConcurrentQueue< T, Traits >::Block::is_empty ( ) const
inline

◆ operator[]() [1/2]

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
T const * moodycamel::ConcurrentQueue< T, Traits >::Block::operator[] ( index_t idx) const
inline

◆ operator[]() [2/2]

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
T * moodycamel::ConcurrentQueue< T, Traits >::Block::operator[] ( index_t idx)
inline

◆ reset_empty()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<InnerQueueContext context>
void moodycamel::ConcurrentQueue< T, Traits >::Block::reset_empty ( )
inline

◆ set_all_empty()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<InnerQueueContext context>
void moodycamel::ConcurrentQueue< T, Traits >::Block::set_all_empty ( )
inline

◆ set_empty()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<InnerQueueContext context>
bool moodycamel::ConcurrentQueue< T, Traits >::Block::set_empty ( index_t i)
inline

◆ set_many_empty()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<InnerQueueContext context>
bool moodycamel::ConcurrentQueue< T, Traits >::Block::set_many_empty ( index_t i,
size_t count )
inline

类成员变量说明

◆ [union]

union { ... } moodycamel::ConcurrentQueue< T, Traits >::Block

◆ dummy

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
details::max_align_t moodycamel::ConcurrentQueue< T, Traits >::Block::dummy

在文件 ConcurrentQueue.h1610 行定义.

◆ dynamicallyAllocated

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
bool moodycamel::ConcurrentQueue< T, Traits >::Block::dynamicallyAllocated

◆ elements

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
char moodycamel::ConcurrentQueue< T, Traits >::Block::elements[sizeof(T) *BLOCK_SIZE]

◆ elementsCompletelyDequeued

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<size_t> moodycamel::ConcurrentQueue< T, Traits >::Block::elementsCompletelyDequeued

◆ emptyFlags

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<bool> moodycamel::ConcurrentQueue< T, Traits >::Block::emptyFlags[BLOCK_SIZE<=EXPLICIT_BLOCK_EMPTY_COUNTER_THRESHOLD ? BLOCK_SIZE :1]

◆ freeListNext

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<Block*> moodycamel::ConcurrentQueue< T, Traits >::Block::freeListNext

在文件 ConcurrentQueue.h1618 行定义.

◆ freeListRefs

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<std::uint32_t> moodycamel::ConcurrentQueue< T, Traits >::Block::freeListRefs

在文件 ConcurrentQueue.h1617 行定义.

◆ next

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
Block* moodycamel::ConcurrentQueue< T, Traits >::Block::next

◆ shouldBeOnFreeList

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<bool> moodycamel::ConcurrentQueue< T, Traits >::Block::shouldBeOnFreeList

在文件 ConcurrentQueue.h1619 行定义.


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