CARLA
Public Member Functions | Public Attributes | Protected Attributes | List of all members
moodycamel::ConcurrentQueue< T, Traits >::ProducerBase Struct Reference
+ Inheritance diagram for moodycamel::ConcurrentQueue< T, Traits >::ProducerBase:
+ Collaboration diagram for moodycamel::ConcurrentQueue< T, Traits >::ProducerBase:

Public Member Functions

template<typename U >
bool dequeue (U &element)
 
template<typename It >
size_t dequeue_bulk (It &itemFirst, size_t max)
 
index_t getTail () const
 
ProducerBasenext_prod () const
 
 ProducerBase (ConcurrentQueue *parent_, bool isExplicit_)
 
size_t size_approx () const
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from moodycamel::details::ConcurrentQueueProducerTypelessBase
 ConcurrentQueueProducerTypelessBase ()
 

Public Attributes

bool isExplicit
 
ConcurrentQueueparent
 
- Public Attributes inherited from moodycamel::details::ConcurrentQueueProducerTypelessBase
std::atomic< bool > inactive
 
ConcurrentQueueProducerTypelessBasenext
 
ProducerTokentoken
 

Protected Attributes

std::atomic< index_tdequeueOptimisticCount
 
std::atomic< index_tdequeueOvercommit
 
std::atomic< index_theadIndex
 
BlocktailBlock
 
std::atomic< index_ttailIndex
 

Detailed Description

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

Definition at line 1639 of file ConcurrentQueue.h.

Constructor & Destructor Documentation

◆ ProducerBase()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::ProducerBase ( ConcurrentQueue parent_,
bool  isExplicit_ 
)
inline

Definition at line 1641 of file ConcurrentQueue.h.

◆ ~ProducerBase()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
virtual moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::~ProducerBase ( )
inlinevirtual

Definition at line 1652 of file ConcurrentQueue.h.

Member Function Documentation

◆ dequeue()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
template<typename U >
bool moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::dequeue ( U &  element)
inline

Definition at line 1655 of file ConcurrentQueue.h.

◆ dequeue_bulk()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
template<typename It >
size_t moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::dequeue_bulk ( It &  itemFirst,
size_t  max 
)
inline

Definition at line 1666 of file ConcurrentQueue.h.

◆ getTail()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
index_t moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::getTail ( ) const
inline

Definition at line 1685 of file ConcurrentQueue.h.

◆ next_prod()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
ProducerBase* moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::next_prod ( ) const
inline

Definition at line 1676 of file ConcurrentQueue.h.

◆ size_approx()

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
size_t moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::size_approx ( ) const
inline

Definition at line 1678 of file ConcurrentQueue.h.

References moodycamel::details::circular_less_than().

+ Here is the call graph for this function:

Member Data Documentation

◆ dequeueOptimisticCount

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<index_t> moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::dequeueOptimisticCount
protected

Definition at line 1690 of file ConcurrentQueue.h.

◆ dequeueOvercommit

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<index_t> moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::dequeueOvercommit
protected

Definition at line 1691 of file ConcurrentQueue.h.

◆ headIndex

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<index_t> moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::headIndex
protected

Definition at line 1688 of file ConcurrentQueue.h.

◆ isExplicit

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
bool moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::isExplicit

Definition at line 1696 of file ConcurrentQueue.h.

◆ parent

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
ConcurrentQueue* moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::parent

Definition at line 1697 of file ConcurrentQueue.h.

◆ tailBlock

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
Block* moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::tailBlock
protected

Definition at line 1693 of file ConcurrentQueue.h.

◆ tailIndex

template<typename T, typename Traits = ConcurrentQueueDefaultTraits>
std::atomic<index_t> moodycamel::ConcurrentQueue< T, Traits >::ProducerBase::tailIndex
protected

Definition at line 1687 of file ConcurrentQueue.h.


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