Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE > Class Template Reference

#include <readerwriterqueue.h>

Public Member Functions

 BlockingReaderWriterQueue (size_t maxSize=15)
 
AE_FORCEINLINE bool enqueue (T const &element)
 
AE_FORCEINLINE bool enqueue (T &&element)
 
AE_FORCEINLINE T * peek ()
 
AE_FORCEINLINE bool pop ()
 
AE_FORCEINLINE size_t size_approx () const
 
template<typename U >
bool try_dequeue (U &result)
 
AE_FORCEINLINE bool try_enqueue (T const &element)
 
AE_FORCEINLINE bool try_enqueue (T &&element)
 
template<typename U >
void wait_dequeue (U &result)
 
template<typename U >
bool wait_dequeue_timed (U &result, std::int64_t timeout_usecs)
 

Private Types

typedef ::moodycamel::ReaderWriterQueue< T, MAX_BLOCK_SIZE > ReaderWriterQueue
 

Private Member Functions

 BlockingReaderWriterQueue (ReaderWriterQueue const &)
 
BlockingReaderWriterQueueoperator= (ReaderWriterQueue const &)
 

Private Attributes

ReaderWriterQueue inner
 
spsc_sema::LightweightSemaphore sema
 

Detailed Description

template<typename T, size_t MAX_BLOCK_SIZE = 512>
class moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >

Definition at line 690 of file readerwriterqueue.h.

Member Typedef Documentation

template<typename T, size_t MAX_BLOCK_SIZE = 512>
typedef ::moodycamel::ReaderWriterQueue<T, MAX_BLOCK_SIZE> moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::ReaderWriterQueue
private

Definition at line 693 of file readerwriterqueue.h.

Constructor & Destructor Documentation

template<typename T, size_t MAX_BLOCK_SIZE = 512>
moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::BlockingReaderWriterQueue ( size_t  maxSize = 15)
inlineexplicit

Definition at line 696 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::BlockingReaderWriterQueue ( ReaderWriterQueue const &  )
inlineprivate

Definition at line 848 of file readerwriterqueue.h.

Member Function Documentation

template<typename T, size_t MAX_BLOCK_SIZE = 512>
AE_FORCEINLINE bool moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::enqueue ( T const &  element)
inline

Definition at line 729 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
AE_FORCEINLINE bool moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::enqueue ( T &&  element)
inline

Definition at line 742 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
BlockingReaderWriterQueue& moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::operator= ( ReaderWriterQueue const &  )
inlineprivate

Definition at line 851 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
AE_FORCEINLINE T* moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::peek ( )
inline

Definition at line 819 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
AE_FORCEINLINE bool moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::pop ( )
inline

Definition at line 827 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
AE_FORCEINLINE size_t moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::size_approx ( ) const
inline

Definition at line 841 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
template<typename U >
bool moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::try_dequeue ( U &  result)
inline

Definition at line 756 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
AE_FORCEINLINE bool moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::try_enqueue ( T const &  element)
inline

Definition at line 703 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
AE_FORCEINLINE bool moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::try_enqueue ( T &&  element)
inline

Definition at line 716 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
template<typename U >
void moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::wait_dequeue ( U &  result)
inline

Definition at line 771 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
template<typename U >
bool moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::wait_dequeue_timed ( U &  result,
std::int64_t  timeout_usecs 
)
inline

Definition at line 787 of file readerwriterqueue.h.

Member Data Documentation

template<typename T, size_t MAX_BLOCK_SIZE = 512>
ReaderWriterQueue moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::inner
private

Definition at line 856 of file readerwriterqueue.h.

template<typename T, size_t MAX_BLOCK_SIZE = 512>
spsc_sema::LightweightSemaphore moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::sema
private

Definition at line 857 of file readerwriterqueue.h.


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


ur_modern_driver
Author(s): Thomas Timm Andersen, Simon Rasmussen
autogenerated on Fri Jun 26 2020 03:37:01