CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::concurrent_queue< T > Class Template Reference

#include <Concurrency.h>

Collaboration diagram for carta::concurrent_queue< T >:
[legend]

Public Member Functions

 concurrent_queue ()
 
 ~concurrent_queue ()
 
void push (T elt)
 
bool try_pop (T &elt)
 
void clear ()
 
size_t size ()
 

Private Attributes

std::list< T > _q
 
std::mutex _mtx
 

Constructor & Destructor Documentation

◆ concurrent_queue()

template<class T >
carta::concurrent_queue< T >::concurrent_queue ( )
inline

◆ ~concurrent_queue()

template<class T >
carta::concurrent_queue< T >::~concurrent_queue ( )
inline

Member Function Documentation

◆ clear()

template<class T >
void carta::concurrent_queue< T >::clear ( )
inline
Here is the caller graph for this function:

◆ push()

template<class T >
void carta::concurrent_queue< T >::push ( elt)
inline
Here is the caller graph for this function:

◆ size()

template<class T >
size_t carta::concurrent_queue< T >::size ( )
inline

◆ try_pop()

template<class T >
bool carta::concurrent_queue< T >::try_pop ( T &  elt)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ _mtx

template<class T >
std::mutex carta::concurrent_queue< T >::_mtx
private

◆ _q

template<class T >
std::list<T> carta::concurrent_queue< T >::_q
private

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