Public Member Functions | Private Attributes | List of all members
single_consumer_queue< T > Class Template Reference

#include <concurrency.hpp>

Public Member Functions

void clear ()
 
dequeue ()
 
void enqueue (T item)
 
 single_consumer_queue ()
 
size_t size ()
 
bool try_dequeue (T *item)
 

Private Attributes

std::condition_variable cv
 
std::mutex mutex
 
std::queue< T > q
 

Detailed Description

template<class T>
class single_consumer_queue< T >

Definition at line 11 of file concurrency.hpp.

Constructor & Destructor Documentation

template<class T>
single_consumer_queue< T >::single_consumer_queue ( )
inline

Definition at line 18 of file concurrency.hpp.

Member Function Documentation

template<class T>
void single_consumer_queue< T >::clear ( )
inline

Definition at line 51 of file concurrency.hpp.

template<class T>
T single_consumer_queue< T >::dequeue ( )
inline

Definition at line 28 of file concurrency.hpp.

template<class T>
void single_consumer_queue< T >::enqueue ( item)
inline

Definition at line 20 of file concurrency.hpp.

template<class T>
size_t single_consumer_queue< T >::size ( )
inline

Definition at line 64 of file concurrency.hpp.

template<class T>
bool single_consumer_queue< T >::try_dequeue ( T *  item)
inline

Definition at line 38 of file concurrency.hpp.

Member Data Documentation

template<class T>
std::condition_variable single_consumer_queue< T >::cv
private

Definition at line 15 of file concurrency.hpp.

template<class T>
std::mutex single_consumer_queue< T >::mutex
private

Definition at line 14 of file concurrency.hpp.

template<class T>
std::queue<T> single_consumer_queue< T >::q
private

Definition at line 13 of file concurrency.hpp.


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


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:19