Workspace 6.21.5
Public Member Functions | Protected Attributes | List of all members
ProducerToken Struct Reference

#include <Workspace/Application/concurrentqueue.h>

Public Member Functions

template<typename T , typename Traits >
 ProducerToken (BlockingConcurrentQueue< T, Traits > &queue)
 
template<typename T , typename Traits >
 ProducerToken (ConcurrentQueue< T, Traits > &queue)
 
 ProducerToken (ProducerToken &&other) noexcept
 
 ProducerToken (ProducerToken const &)=delete
 
 ~ProducerToken ()
 
ProducerTokenoperator= (ProducerToken &&other) noexcept
 
ProducerTokenoperator= (ProducerToken const &)=delete
 
void swap (ProducerToken &other) noexcept
 
bool valid () const
 

Protected Attributes

details::ConcurrentQueueProducerTypelessBaseproducer
 

Constructor & Destructor Documentation

◆ ProducerToken() [1/4]

ProducerToken ( ConcurrentQueue< T, Traits > &  queue)
explicit

◆ ProducerToken() [2/4]

ProducerToken ( BlockingConcurrentQueue< T, Traits > &  queue)
explicit

◆ ProducerToken() [3/4]

ProducerToken ( ProducerToken &&  other)
inlinenoexcept

◆ ~ProducerToken()

~ProducerToken ( )
inline

◆ ProducerToken() [4/4]

ProducerToken ( ProducerToken const &  )
delete

Member Function Documentation

◆ operator=() [1/2]

ProducerToken & operator= ( ProducerToken &&  other)
inlinenoexcept

◆ operator=() [2/2]

ProducerToken & operator= ( ProducerToken const &  )
delete

◆ swap()

void swap ( ProducerToken other)
inlinenoexcept

◆ valid()

bool valid ( ) const
inline

Member Data Documentation

◆ producer