A library for working with phylogenetic and population genetic data.
v0.32.0
ProducerToken Struct Reference

#include <genesis/utils/threading/concurrent_queue.hpp>

Detailed Description

Definition at line 821 of file concurrent_queue.hpp.

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
 

Friends

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

Constructor & Destructor Documentation

◆ ProducerToken() [1/4]

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

Definition at line 3876 of file concurrent_queue.hpp.

◆ ProducerToken() [2/4]

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

Definition at line 3885 of file concurrent_queue.hpp.

◆ ProducerToken() [3/4]

ProducerToken ( ProducerToken &&  other)
inlinenoexcept

Definition at line 828 of file concurrent_queue.hpp.

◆ ~ProducerToken()

~ProducerToken ( )
inline

Definition at line 864 of file concurrent_queue.hpp.

◆ ProducerToken() [4/4]

ProducerToken ( ProducerToken const &  )
delete

Member Function Documentation

◆ operator=() [1/2]

ProducerToken& operator= ( ProducerToken &&  other)
inlinenoexcept

Definition at line 837 of file concurrent_queue.hpp.

◆ operator=() [2/2]

ProducerToken& operator= ( ProducerToken const &  )
delete

◆ swap()

void swap ( ProducerToken other)
inlinenoexcept

Definition at line 843 of file concurrent_queue.hpp.

◆ valid()

bool valid ( ) const
inline

Definition at line 862 of file concurrent_queue.hpp.

Friends And Related Function Documentation

◆ ConcurrentQueue

friend class ConcurrentQueue
friend

Definition at line 878 of file concurrent_queue.hpp.

◆ ConcurrentQueueTests

friend class ConcurrentQueueTests
friend

Definition at line 879 of file concurrent_queue.hpp.

Member Data Documentation

◆ producer

Definition at line 882 of file concurrent_queue.hpp.


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