CARLA
Public Member Functions | Private Attributes | Friends | List of all members
moodycamel::ConsumerToken Struct Reference

#include <ConcurrentQueue.h>

+ Collaboration diagram for moodycamel::ConsumerToken:

Public Member Functions

template<typename T , typename Traits >
 ConsumerToken (ConcurrentQueue< T, Traits > &q)
 
template<typename T , typename Traits >
 ConsumerToken (BlockingConcurrentQueue< T, Traits > &q)
 
 ConsumerToken (ConsumerToken &&other) MOODYCAMEL_NOEXCEPT
 
 ConsumerToken (ConsumerToken const &) MOODYCAMEL_DELETE_FUNCTION
 
ConsumerTokenoperator= (ConsumerToken &&other) MOODYCAMEL_NOEXCEPT
 
ConsumerTokenoperator= (ConsumerToken const &) MOODYCAMEL_DELETE_FUNCTION
 
void swap (ConsumerToken &other) MOODYCAMEL_NOEXCEPT
 

Private Attributes

details::ConcurrentQueueProducerTypelessBasecurrentProducer
 
details::ConcurrentQueueProducerTypelessBasedesiredProducer
 
std::uint32_t initialOffset
 
std::uint32_t itemsConsumedFromCurrent
 
std::uint32_t lastKnownGlobalOffset
 

Friends

template<typename T , typename Traits >
class ConcurrentQueue
 
class ConcurrentQueueTests
 

Detailed Description

Definition at line 644 of file ConcurrentQueue.h.

Constructor & Destructor Documentation

◆ ConsumerToken() [1/4]

template<typename T , typename Traits >
moodycamel::ConsumerToken::ConsumerToken ( ConcurrentQueue< T, Traits > &  q)
explicit

◆ ConsumerToken() [2/4]

template<typename T , typename Traits >
moodycamel::ConsumerToken::ConsumerToken ( BlockingConcurrentQueue< T, Traits > &  q)
explicit

Definition at line 3614 of file ConcurrentQueue.h.

References initialOffset, and lastKnownGlobalOffset.

◆ ConsumerToken() [3/4]

moodycamel::ConsumerToken::ConsumerToken ( ConsumerToken &&  other)
inline

Definition at line 652 of file ConcurrentQueue.h.

◆ ConsumerToken() [4/4]

moodycamel::ConsumerToken::ConsumerToken ( ConsumerToken const &  )

Member Function Documentation

◆ operator=() [1/2]

ConsumerToken& moodycamel::ConsumerToken::operator= ( ConsumerToken &&  other)
inline

Definition at line 657 of file ConcurrentQueue.h.

References moodycamel::swap().

+ Here is the call graph for this function:

◆ operator=() [2/2]

ConsumerToken& moodycamel::ConsumerToken::operator= ( ConsumerToken const &  )

◆ swap()

void moodycamel::ConsumerToken::swap ( ConsumerToken other)
inline

Definition at line 663 of file ConcurrentQueue.h.

References MOODYCAMEL_DELETE_FUNCTION, and swap().

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ ConcurrentQueue

template<typename T , typename Traits >
friend class ConcurrentQueue
friend

Definition at line 677 of file ConcurrentQueue.h.

◆ ConcurrentQueueTests

friend class ConcurrentQueueTests
friend

Definition at line 678 of file ConcurrentQueue.h.

Member Data Documentation

◆ currentProducer

details::ConcurrentQueueProducerTypelessBase* moodycamel::ConsumerToken::currentProducer
private

◆ desiredProducer

details::ConcurrentQueueProducerTypelessBase* moodycamel::ConsumerToken::desiredProducer
private

◆ initialOffset

std::uint32_t moodycamel::ConsumerToken::initialOffset
private

◆ itemsConsumedFromCurrent

std::uint32_t moodycamel::ConsumerToken::itemsConsumedFromCurrent
private

◆ lastKnownGlobalOffset

std::uint32_t moodycamel::ConsumerToken::lastKnownGlobalOffset
private

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