Sese Framework
2.3.0
A cross-platform framework
|
Cache queue (multi producer-multi consumer) More...
#include <BufferedQueue.h>
Public Member Functions | |
BufferedQueueNn (size_t write_limit) | |
bool | pop (T &t) |
bool | push (const T &t) |
Private Member Functions | |
void | swap () |
Private Attributes | |
std::queue< T > | q1 |
std::queue< T > | q2 |
std::queue< T > & | writeQueue = q1 |
std::queue< T > & | readQueue = q2 |
std::mutex | writeMutex |
std::mutex | readMutex |
size_t | writeLimit |
Cache queue (multi producer-multi consumer)
|
inlineexplicit |
|
inline |
|
inline |
|
inlineprivate |
References sese::BufferedQueueNn< T >::q1, and sese::BufferedQueueNn< T >::q2.
Referenced by sese::BufferedQueueNn< T >::pop().
|
private |
Referenced by sese::BufferedQueueNn< T >::swap().
|
private |
Referenced by sese::BufferedQueueNn< T >::swap().
|
private |
Referenced by sese::BufferedQueueNn< T >::pop().
|
private |
Referenced by sese::BufferedQueueNn< T >::pop().
|
private |
Referenced by sese::BufferedQueueNn< T >::push().
|
private |
Referenced by sese::BufferedQueueNn< T >::pop(), and sese::BufferedQueueNn< T >::push().
|
private |
Referenced by sese::BufferedQueueNn< T >::push().