CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Private 成员函数 | Private 属性 | 静态 Private 属性 | 所有成员列表
moodycamel::ConcurrentQueue< T, Traits >::FreeList< N > 模板结构体 参考
+ 类 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N > 继承关系图:
+ moodycamel::ConcurrentQueue< T, Traits >::FreeList< N > 的协作图:

Public 成员函数

void add (N *node)
 
 FreeList ()
 
 FreeList (FreeList &&other)
 
 FreeList (FreeList const &) MOODYCAMEL_DELETE_FUNCTION
 
N * head_unsafe () const
 
FreeListoperator= (FreeList const &) MOODYCAMEL_DELETE_FUNCTION
 
void swap (FreeList &other)
 
N * try_get ()
 

Private 成员函数

void add_knowing_refcount_is_zero (N *node)
 

Private 属性

std::atomic< N * > freeListHead
 

静态 Private 属性

static const std::uint32_t REFS_MASK = 0x7FFFFFFF
 
static const std::uint32_t SHOULD_BE_ON_FREELIST = 0x80000000
 

详细描述

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

在文件 ConcurrentQueue.h1378 行定义.

构造及析构函数说明

◆ FreeList() [1/3]

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

在文件 ConcurrentQueue.h1380 行定义.

◆ FreeList() [2/3]

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::FreeList ( FreeList< N > && other)
inline

在文件 ConcurrentQueue.h1381 行定义.

◆ FreeList() [3/3]

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::FreeList ( FreeList< N > const & )

成员函数说明

◆ add()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
void moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::add ( N * node)
inline

在文件 ConcurrentQueue.h1387 行定义.

引用了 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::add_knowing_refcount_is_zero() , 以及 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::SHOULD_BE_ON_FREELIST.

+ 函数调用图:

◆ add_knowing_refcount_is_zero()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
void moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::add_knowing_refcount_is_zero ( N * node)
inlineprivate

在文件 ConcurrentQueue.h1444 行定义.

引用了 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::freeListHead , 以及 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::SHOULD_BE_ON_FREELIST.

被这些函数引用 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::add() , 以及 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::try_get().

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

◆ head_unsafe()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
N * moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::head_unsafe ( ) const
inline

◆ operator=()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
FreeList & moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::operator= ( FreeList< N > const & )

◆ swap()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
void moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::swap ( FreeList< N > & other)
inline

在文件 ConcurrentQueue.h1382 行定义.

引用了 moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::freeListHead , 以及 moodycamel::details::swap_relaxed().

+ 函数调用图:

◆ try_get()

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
N * moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::try_get ( )
inline

类成员变量说明

◆ freeListHead

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
std::atomic<N*> moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::freeListHead
private

◆ REFS_MASK

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
const std::uint32_t moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::REFS_MASK = 0x7FFFFFFF
staticprivate

◆ SHOULD_BE_ON_FREELIST

template<typename T , typename Traits = ConcurrentQueueDefaultTraits>
template<typename N >
const std::uint32_t moodycamel::ConcurrentQueue< T, Traits >::FreeList< N >::SHOULD_BE_ON_FREELIST = 0x80000000
staticprivate

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