AllianceDB  0.0.1
AllianceDB is an open-source suite, including benchmarks and libs for evaluating and improving stream operation algorithms on modern hardwares.
std::SafeQueue< T > Class Template Reference
Collaboration diagram for std::SafeQueue< T >:

Public Member Functions

 SafeQueue (const SafeQueue &rhs)
 
void push (T data)
 
void pushNoMove (T data)
 
void waitAndPop (T &res)
 
auto pop ()
 
auto size ()
 
auto empty ()
 
auto front ()
 
void operator= (const SafeQueue &D)
 
void operator= (const std::queue< T > &D)
 
void waitAndPopNoMOve (T &res)
 
bool tryPop (T &res)
 
shared_ptr< T > waitAndPop ()
 
shared_ptr< T > tryPop ()
 

Public Attributes

mutex m_mut
 
condition_variable m_cond
 
queue< T > m_queue
 

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