Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::BufferedQueue11< T > Class Template Reference

Cache queue (single producer-single consumer) More...

#include <BufferedQueue.h>

Public Member Functions

 BufferedQueue11 (size_t write_limit)
 
bool pop (T &t)
 
bool push (const T &t)
 

Private Attributes

std::queue< T > queue
 
std::mutex mutex
 
size_t writeLimit
 

Detailed Description

template<class T>
class sese::BufferedQueue11< T >

Cache queue (single producer-single consumer)

Constructor & Destructor Documentation

◆ BufferedQueue11()

template<class T >
sese::BufferedQueue11< T >::BufferedQueue11 ( size_t write_limit)
inlineexplicit

Member Function Documentation

◆ pop()

template<class T >
bool sese::BufferedQueue11< T >::pop ( T & t)
inline

◆ push()

Member Data Documentation

◆ mutex

template<class T >
std::mutex sese::BufferedQueue11< T >::mutex
private

◆ queue

template<class T >
std::queue<T> sese::BufferedQueue11< T >::queue
private

◆ writeLimit

template<class T >
size_t sese::BufferedQueue11< T >::writeLimit
private

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