CARLA
Loading...
Searching...
No Matches
moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer Struct Reference
Inheritance diagram for moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer:

Classes

struct  BlockIndexEntry
struct  BlockIndexHeader

Public Member Functions

template<typename U>
bool dequeue (U &element)
template<typename It>
size_t dequeue_bulk (It &itemFirst, size_t max)
template<AllocationMode allocMode, typename U>
bool enqueue (U &&element)
template<AllocationMode allocMode, typename It>
bool enqueue_bulk (It itemFirst, size_t count)
 ImplicitProducer (ConcurrentQueue *parent)
 ~ImplicitProducer ()
Public Member Functions inherited from moodycamel::ConcurrentQueue< T, Traits >::ProducerBase
template<typename U>
bool dequeue (U &element)
template<typename It>
size_t dequeue_bulk (It &itemFirst, size_t max)
index_t getTail () const
ProducerBase * next_prod () const
 ProducerBase (ConcurrentQueue *parent_, bool isExplicit_)
size_t size_approx () const
virtual ~ProducerBase ()
Public Member Functions inherited from moodycamel::details::ConcurrentQueueProducerTypelessBase
 ConcurrentQueueProducerTypelessBase ()

Private Member Functions

BlockIndexEntry * get_block_index_entry_for_index (index_t index) const
size_t get_block_index_index_for_index (index_t index, BlockIndexHeader *&localBlockIndex) const
template<AllocationMode allocMode>
bool insert_block_index_entry (BlockIndexEntry *&idxEntry, index_t blockStartIndex)
bool new_block_index ()
void rewind_block_index_tail ()

Private Attributes

std::atomic< BlockIndexHeader * > blockIndex
size_t nextBlockIndexCapacity

Static Private Attributes

static const index_t INVALID_BLOCK_BASE = 1

Additional Inherited Members

Public Attributes inherited from moodycamel::ConcurrentQueue< T, Traits >::ProducerBase
bool isExplicit
ConcurrentQueue * parent
Public Attributes inherited from moodycamel::details::ConcurrentQueueProducerTypelessBase
std::atomic< bool > inactive
ConcurrentQueueProducerTypelessBase * next
ProducerToken * token
Protected Attributes inherited from moodycamel::ConcurrentQueue< T, Traits >::ProducerBase
std::atomic< index_t > dequeueOptimisticCount
std::atomic< index_t > dequeueOvercommit
std::atomic< index_t > headIndex
Block * tailBlock
std::atomic< index_t > tailIndex

Detailed Description

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

Definition at line 2356 of file ConcurrentQueue.h.

Constructor & Destructor Documentation

◆ ImplicitProducer()

◆ ~ImplicitProducer()

Member Function Documentation

◆ dequeue()

◆ dequeue_bulk()

◆ enqueue()

◆ enqueue_bulk()

◆ get_block_index_entry_for_index()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
BlockIndexEntry * moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer::get_block_index_entry_for_index ( index_t index) const
inlineprivate

◆ get_block_index_index_for_index()

◆ insert_block_index_entry()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
template<AllocationMode allocMode>
bool moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer::insert_block_index_entry ( BlockIndexEntry *& idxEntry,
index_t blockStartIndex )
inlineprivate

◆ new_block_index()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
bool moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer::new_block_index ( )
inlineprivate

◆ rewind_block_index_tail()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
void moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer::rewind_block_index_tail ( )
inlineprivate

Definition at line 2857 of file ConcurrentQueue.h.

References blockIndex.

Referenced by enqueue(), and enqueue_bulk().

Member Data Documentation

◆ blockIndex

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<BlockIndexHeader*> moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer::blockIndex
private

◆ INVALID_BLOCK_BASE

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
const index_t moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer::INVALID_BLOCK_BASE = 1
staticprivate

◆ nextBlockIndexCapacity

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
size_t moodycamel::ConcurrentQueue< T, Traits >::ImplicitProducer::nextBlockIndexCapacity
private

Definition at line 2933 of file ConcurrentQueue.h.

Referenced by ImplicitProducer(), and new_block_index().


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