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_NO_TSAN
 
 BlockingReaderWriterQueue (BlockingReaderWriterQueue &&other) AE_NO_TSAN
 
AE_FORCEINLINE bool enqueue (T const &element) AE_NO_TSAN
 
AE_FORCEINLINE bool enqueue (T &&element) AE_NO_TSAN
 
BlockingReaderWriterQueueoperator= (BlockingReaderWriterQueue &&other) AE_NO_TSAN
 
AE_FORCEINLINE T * peek () AE_NO_TSAN
 
AE_FORCEINLINE bool pop () AE_NO_TSAN
 
AE_FORCEINLINE size_t size_approx () const AE_NO_TSAN
 
template<typename U >
bool try_dequeue (U &result) AE_NO_TSAN
 
AE_FORCEINLINE bool try_enqueue (T const &element) AE_NO_TSAN
 
AE_FORCEINLINE bool try_enqueue (T &&element) AE_NO_TSAN
 
template<typename U >
void wait_dequeue (U &result) AE_NO_TSAN
 
template<typename U >
bool wait_dequeue_timed (U &result, std::int64_t timeout_usecs) AE_NO_TSAN
 

Private Types

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

Private Member Functions

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

Private Attributes

ReaderWriterQueue inner
 
std::unique_ptr< spsc_sema::LightweightSemaphoresema
 

Detailed Description

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

Definition at line 724 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 727 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 730 of file readerwriterqueue.h.

template<typename T , size_t MAX_BLOCK_SIZE = 512>
moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::BlockingReaderWriterQueue ( BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE > &&  other)
inline

Definition at line 734 of file readerwriterqueue.h.

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

Definition at line 894 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 774 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 786 of file readerwriterqueue.h.

template<typename T , size_t MAX_BLOCK_SIZE = 512>
BlockingReaderWriterQueue& moodycamel::BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE >::operator= ( BlockingReaderWriterQueue< T, MAX_BLOCK_SIZE > &&  other)
inline

Definition at line 738 of file readerwriterqueue.h.

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

Definition at line 895 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 865 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 873 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 886 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 800 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 749 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 761 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 815 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 832 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 898 of file readerwriterqueue.h.

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

Definition at line 899 of file readerwriterqueue.h.


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


orb_slam2_with_maps_odom
Author(s): teng zhang
autogenerated on Fri Sep 25 2020 03:24:47