CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Private 属性 | 所有成员列表
moodycamel::Block结构体 参考
+ moodycamel::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
 
};  
 

详细描述

在文件 ConcurrentQueue.h1598 行定义.

构造及析构函数说明

◆ Block()

moodycamel::Block::Block ( )
inline

在文件 ConcurrentQueue.h1600 行定义.

成员函数说明

◆ is_empty()

template<InnerQueueContext context>
bool moodycamel::Block::is_empty ( ) const
inline

◆ operator[]() [1/2]

T const * moodycamel::Block::operator[] ( index_t idx) const
inline

在文件 ConcurrentQueue.h1706 行定义.

引用了 BLOCK_SIZE , 以及 elements.

◆ operator[]() [2/2]

T * moodycamel::Block::operator[] ( index_t idx)
inline

在文件 ConcurrentQueue.h1705 行定义.

引用了 BLOCK_SIZE , 以及 elements.

◆ reset_empty()

template<InnerQueueContext context>
void moodycamel::Block::reset_empty ( )
inline

◆ set_all_empty()

template<InnerQueueContext context>
void moodycamel::Block::set_all_empty ( )
inline

在文件 ConcurrentQueue.h1676 行定义.

◆ set_empty()

template<InnerQueueContext context>
bool moodycamel::Block::set_empty ( index_t i)
inline

◆ set_many_empty()

template<InnerQueueContext context>
bool moodycamel::Block::set_many_empty ( index_t i,
size_t count )
inline

类成员变量说明

◆ [union]

union { ... } moodycamel::Block

◆ dummy

details::max_align_t moodycamel::Block::dummy

在文件 ConcurrentQueue.h1718 行定义.

◆ dynamicallyAllocated

bool moodycamel::Block::dynamicallyAllocated

在文件 ConcurrentQueue.h1728 行定义.

被这些函数引用 moodycamel::populate_initial_block_list().

◆ elements

char moodycamel::Block::elements[sizeof(T) *BLOCK_SIZE]

在文件 ConcurrentQueue.h1717 行定义.

被这些函数引用 operator[]() , 以及 operator[]().

◆ elementsCompletelyDequeued

std::atomic<size_t> moodycamel::Block::elementsCompletelyDequeued

在文件 ConcurrentQueue.h1722 行定义.

被这些函数引用 set_empty() , 以及 try_enqueue_bulk().

◆ emptyFlags

std::atomic<bool> moodycamel::Block::emptyFlags[BLOCK_SIZE<=EXPLICIT_BLOCK_EMPTY_COUNTER_THRESHOLD ? BLOCK_SIZE :1]

在文件 ConcurrentQueue.h1723 行定义.

被这些函数引用 is_empty(), reset_empty(), set_empty() , 以及 try_enqueue().

◆ freeListNext

std::atomic<Block*> moodycamel::Block::freeListNext

在文件 ConcurrentQueue.h1726 行定义.

◆ freeListRefs

std::atomic<std::uint32_t> moodycamel::Block::freeListRefs

在文件 ConcurrentQueue.h1725 行定义.

◆ next

Block* moodycamel::Block::next

◆ shouldBeOnFreeList

std::atomic<bool> moodycamel::Block::shouldBeOnFreeList

在文件 ConcurrentQueue.h1727 行定义.


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